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:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v3
1515 with :
1616 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\//}
2217 - name : Create Release
2318 id : create_release
24- uses : actions/create-release@master
19+ uses : elgohr/Github-Release-Action@v4
2520 env :
26- GITHUB_TOKEN : ${{ github.token }}
21+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
2722 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 }}
3224 - name : Upload install.bat
3325 uses : svenstaro/upload-release-action@v2
3426 with :
5042 steps :
5143 - name : Checkout
5244 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\//}
5845 - name : Build and Publish
5946 uses : wangyoucao577/go-release-action@v1.28
6047 with :
6451 binary_name : codegame
6552 asset_name : codegame-cli-${{matrix.goos}}-${{matrix.goarch}}
6653 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 }}"
6956 md5sum : false
You can’t perform that action at this time.
0 commit comments