-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (61 loc) · 1.94 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Get Golang version from .mise.toml
uses: SebRollen/[email protected]
id: get-golang-version
with:
file: .mise.toml
field: tools.golang
- uses: actions/setup-go@v5
with:
go-version: '${{ steps.get-golang-version.outputs.value }}'
- name: Get nfpm version from .mise.toml
uses: SebRollen/[email protected]
id: get-golang-version
with:
file: .mise.toml
field: tools.nfpm
- name: Setup nfpm
uses: supplypike/setup-bin@v4
with:
uri: 'https://github.com/goreleaser/nfpm/releases/download/v${{ env.NFPM_VERSION }}/nfpm_${{ env.NFPM_VERSION }}_Linux_x86_64.tar.gz'
name: 'nfpm'
version: '${{ steps.get-nfpm-version.outputs.value }}'
- name: Setup fury
uses: supplypike/setup-bin@v4
with:
uri: 'https://github.com/gemfury/cli/releases/download/v0.20.1/fury_0.20.1_Linux_64bit.tar.gz'
name: 'fury'
version: '0.20.1'
- name: Get goreleaser version from .mise.toml
uses: SebRollen/[email protected]
id: get-goreleaser-version
with:
file: .mise.toml
field: tools.goreleaser
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '${{ steps.get-goreleaser-version.outputs.value }}'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
PROJECT: github.com/inverse/git-pair
AUR_KEY: ${{ secrets.AUR_KEY }}
- name: Upload rpm and apt binaries
run: ./scripts/deploy.sh
env:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}