Commit a7154f5 1 parent 2843f30 commit a7154f5 Copy full SHA for a7154f5
File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
# Sequence of patterns matched against refs/tags
6
7
tags :
@@ -47,17 +48,17 @@ jobs:
47
48
id : get_version
48
49
run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
49
50
shell : bash
50
-
51
- - name : Upload Release Asset
52
- id : upload-release-asset
53
- uses : actions/upload-release-asset@v1
54
- env :
55
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+
52
+ - name : Rename release file
53
+ run : mv downloader.zip downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
54
+ shell : bash
55
+
56
+ - name : Release
57
+ uses : softprops/action-gh-release@v1
58
+ if : startsWith(github.ref, 'refs/tags/')
56
59
with :
57
- upload_url : ${{ steps.create_release.outputs.upload_url }}
58
- asset_path : downloader.zip
59
- asset_name : downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
60
- asset_content_type : application/zip
60
+ generate_release_notes : true
61
+ files : downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
61
62
62
63
release :
63
64
You can’t perform that action at this time.
0 commit comments