File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ env :
9+ ENABLE_UPX : 1
10+
11+ jobs :
12+ release :
13+ name : Release Binary
14+ runs-on : ubuntu-latest
15+ container :
16+ image : goreleaser/goreleaser-cross:v1.24
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+ - run : git config --global --add safe.directory "$(pwd)"
23+
24+ - name : Setup Go
25+ uses : actions/setup-go@v4
26+ with :
27+ go-version : ' ^1.24'
28+
29+ - name : Cache go module
30+ uses : actions/cache@v3
31+ with :
32+ path : ~/go/pkg/mod
33+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34+ restore-keys : |
35+ ${{ runner.os }}-go-
36+
37+ - name : Install UPX
38+ uses : crazy-max/ghaction-upx@v3
39+ with :
40+ install-only : true
41+
42+ - name : Run GoReleaser
43+ run : goreleaser release --clean
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ ENABLE_UPX : true
You can’t perform that action at this time.
0 commit comments