File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,16 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout
14
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
15
15
with :
16
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
17
- name : Create Release
23
18
id : create_release
24
- uses : actions/create-release@master
19
+ uses : elgohr/Github-Release-Action@v4
25
20
env :
26
- GITHUB_TOKEN : ${{ github.token }}
21
+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
27
22
with :
28
- tag_name : ${{ steps.tags.outputs.tag }}
29
- release_name : ${{ steps.tags.outputs.tag }}
30
- draft : false
31
- prerelease : false
23
+ title : ${{ github.ref }}
32
24
- name : Upload install.bat
33
25
uses : svenstaro/upload-release-action@v2
34
26
with :
50
42
steps :
51
43
- name : Checkout
52
44
uses : actions/checkout@v3
53
- - name : Read info
54
- id : tags
55
- shell : bash
56
- run : |
57
- echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
58
45
- name : Build and Publish
59
46
uses : wangyoucao577/go-release-action@v1.28
60
47
with :
64
51
binary_name : codegame
65
52
asset_name : codegame-cli-${{matrix.goos}}-${{matrix.goarch}}
66
53
extra_files : LICENSE README.md
67
- release_tag : ${{ steps.tags.outputs.tag }}
68
- ldflags : -X "main.version=${{ steps.tags.outputs.tag }}"
54
+ release_tag : ${{ github.ref }}
55
+ ldflags : -X "main.version=${{ github.ref }}"
69
56
md5sum : false
You can’t perform that action at this time.
0 commit comments