File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ push :
5+ branches : [master, main, force_test, release-*]
6+ tags : ['*']
7+ pull_request :
8+ branches : ['**']
9+
10+ jobs :
11+ goreleaser :
12+ runs-on : ubuntu-latest
13+ steps :
14+ -
15+ name : Checkout
16+ uses : actions/checkout@v2
17+ with :
18+ fetch-depth : 0
19+ -
20+ name : Set up Go
21+ uses : actions/setup-go@v2
22+ with :
23+ go-version : 1.16
24+ -
25+ name : Run GoReleaser Test
26+ uses : goreleaser/goreleaser-action@v2
27+ with :
28+ distribution : goreleaser
29+ version : latest
30+ workdir : cli
31+ args : release --snapshot --skip-publish --rm-dist
32+ -
33+ name : GoReleaser Release
34+ uses : goreleaser/goreleaser-action@v2
35+ # release only on tags
36+ if : startsWith(github.ref, 'refs/tags/')
37+ with :
38+ distribution : goreleaser
39+ version : latest
40+ workdir : cli
41+ args : release --rm-dist
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments