@@ -2,41 +2,47 @@ name: Binary Builds
22
33on :
44 push :
5- tags-ignore :
6- - ' v*-dev. *'
5+ tags :
6+ - ' *'
77
88jobs :
9- pre- release :
10- name : Pre Release
9+ release-linux-amd64 :
10+ name : release linux/amd64
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Get current date
14- id : date
15- run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
16- - name : Checkout the repository
17- uses : actions/checkout@v2
18- with :
19- fetch-depth : 0
20- - name : Generate Change Log
21- id : generate_log
22- run : |
23- curl -L https://github.com/barelyhuman/commitlog/releases/download/v0.0.7-dev.4/commitlog-linux-amd64.tar.gz -o clog.tar.gz
24- tar -xvzf clog.tar.gz
25- chmod +x commitlog
26- ./commitlog . > CHANGELOG.txt
27- - name : Generate build files
28- uses : thatisuday/go-cross-build@v1
29- with :
30- platforms : " linux/amd64, linux/arm, linux/arm64, windows/amd64, darwin/amd64"
31- package : " "
32- name : commitlog
33- compress : " true"
34- dest : dist
35- - name : Release
36- uses : softprops/action-gh-release@v1
37- if : startsWith(github.ref, 'refs/tags/')
38- with :
39- body_path : CHANGELOG.txt
40- files : dist/*
41- env :
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
13+ - uses : actions/checkout@v2
14+ - uses : wangyoucao577/go-release-action@v1.18
15+ with :
16+ github_token : ${{ secrets.GITHUB_TOKEN }}
17+ goos : linux
18+ goarch : amd64
19+ release-linux-arm64 :
20+ name : release linux/arm64
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : wangyoucao577/go-release-action@v1.18
25+ with :
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
27+ goos : linux
28+ goarch : arm64
29+ release-darwin-amd64 :
30+ name : release darwin/amd64
31+ runs-on : macOS-latest
32+ steps :
33+ - uses : actions/checkout@v2
34+ - uses : wangyoucao577/go-release-action@v1.18
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ goos : darwin
38+ goarch : amd64
39+ release-darwin-arm64 :
40+ name : release darwin/arm64
41+ runs-on : macOS-latest
42+ steps :
43+ - uses : actions/checkout@v2
44+ - uses : wangyoucao577/go-release-action@v1.18
45+ with :
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
47+ goos : darwin
48+ goarch : arm64
0 commit comments