File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 61
61
62
62
- name : Create GitHub Release
63
63
id : create_release
64
+ if : startsWith(github.ref, 'refs/tags/') # ← only on tags
64
65
uses : actions/create-release@v1
65
66
env :
66
67
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -71,13 +72,13 @@ jobs:
71
72
draft : false
72
73
prerelease : false
73
74
74
- # 2) Upload that single ZIP file
75
- - name : Upload Release Asset (${{ matrix.rid }} )
75
+ - name : Upload Release Asset
76
+ if : startsWith(github.ref, 'refs/tags/' )
76
77
uses : actions/upload-release-asset@v1
77
78
env :
78
79
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
80
with :
80
81
upload_url : ${{ steps.create_release.outputs.upload_url }}
81
- asset_path : artifacts/${{ matrix.rid }}.zip
82
+ asset_path : ' artifacts/${{ matrix.rid }}.zip'
82
83
asset_name : ${{ matrix.rid }}-build.zip
83
84
asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments