File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ timeout-minutes : 10
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@master
16+ with :
17+ fetch-depth : 0
18+ - name : Set up Go
19+ uses : actions/setup-go@master
20+ with :
21+ go-version : 1.17
22+ - uses : actions/cache@v2
23+ with :
24+ path : |
25+ ~/.cache/go-build
26+ ~/go/pkg/mod
27+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28+ restore-keys : |
29+ ${{ runner.os }}-go-
30+ - name : Run GoReleaser
31+ uses : goreleaser/goreleaser-action@v2
32+ with :
33+ version : latest
34+ args : release --rm-dist --snapshot
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GH_PAT }}
Original file line number Diff line number Diff line change 1818 uses : actions/setup-go@master
1919 with :
2020 go-version : 1.17
21+ - uses : actions/cache@v2
22+ with :
23+ path : |
24+ ~/.cache/go-build
25+ ~/go/pkg/mod
26+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+ restore-keys : |
28+ ${{ runner.os }}-go-
2129 - name : Run GoReleaser
2230 uses : goreleaser/goreleaser-action@v2
2331 with :
You can’t perform that action at this time.
0 commit comments