File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ goreleaser :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ with :
18+ fetch-depth : 0
19+ - name : Set up Go
20+ uses : actions/setup-go@v2
21+ with :
22+ go-version : 1.16
23+ - name : Import GPG key
24+ id : import_gpg
25+ uses : crazy-max/ghaction-import-gpg@v3
26+ with :
27+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
28+ passphrase : ${{ secrets.PASSPHRASE }}
29+ - name : Run GoReleaser
30+ uses : goreleaser/goreleaser-action@v2
31+ with :
32+ version : latest
33+ args : release --rm-dist
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
37+ - name : Upload assets
38+ uses : actions/upload-artifact@v2
39+ with :
40+ path : dist/*
You can’t perform that action at this time.
0 commit comments