File tree Expand file tree Collapse file tree 1 file changed +38
-6
lines changed Expand file tree Collapse file tree 1 file changed +38
-6
lines changed Original file line number Diff line number Diff line change 11name : Build Release
22
3- on :
4- release :
5- types : [created]
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
67
78jobs :
8- releases-matrix :
9+ create_release :
10+ name : Create release
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0
17+ - name : Read info
18+ id : tags
19+ shell : bash
20+ run : |
21+ echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
22+ - name : Create Release
23+ id : create_release
24+ uses : actions/create-release@master
25+ env :
26+ GITHUB_TOKEN : ${{ github.token }}
27+ with :
28+ tag_name : ${{ steps.tags.outputs.tag }}
29+ release_name : ${{ steps.tags.outputs.tag }}
30+ draft : false
31+ prerelease : false
32+ publish_binaries :
933 name : Release Go Binary
1034 runs-on : ubuntu-latest
1135 strategy :
@@ -16,12 +40,20 @@ jobs:
1640 - goarch : arm64
1741 goos : windows
1842 steps :
19- - uses : actions/checkout@v3
20- - uses : wangyoucao577/go-release-action@v1.28
43+ - name : Checkout
44+ uses : actions/checkout@v3
45+ - name : Read info
46+ id : tags
47+ shell : bash
48+ run : |
49+ echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
50+ - name : Build and Publish
51+ uses : wangyoucao577/go-release-action@v1.28
2152 with :
2253 github_token : ${{ secrets.GITHUB_TOKEN }}
2354 goos : ${{ matrix.goos }}
2455 goarch : ${{ matrix.goarch }}
2556 binary_name : codegame-go
2657 asset_name : codegame-cli-go-${{matrix.goos}}-${{matrix.goarch}}
2758 extra_files : LICENSE README.md
59+ release_tag : ${{ steps.tags.outputs.tag }}
You can’t perform that action at this time.
0 commit comments