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 1
1
name : Build Release
2
2
3
- on :
4
- release :
5
- types : [created]
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
6
7
7
8
jobs :
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 :
9
33
name : Release Go Binary
10
34
runs-on : ubuntu-latest
11
35
strategy :
@@ -16,12 +40,20 @@ jobs:
16
40
- goarch : arm64
17
41
goos : windows
18
42
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
21
52
with :
22
53
github_token : ${{ secrets.GITHUB_TOKEN }}
23
54
goos : ${{ matrix.goos }}
24
55
goarch : ${{ matrix.goarch }}
25
56
binary_name : codegame-go
26
57
asset_name : codegame-cli-go-${{matrix.goos}}-${{matrix.goarch}}
27
58
extra_files : LICENSE README.md
59
+ release_tag : ${{ steps.tags.outputs.tag }}
You can’t perform that action at this time.
0 commit comments