Skip to content

Commit e31d8a6

Browse files
workflow updated
1 parent 428366e commit e31d8a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish-singlefile.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
6262
- name: Create GitHub Release
6363
id: create_release
64+
if: startsWith(github.ref, 'refs/tags/') # ← only on tags
6465
uses: actions/create-release@v1
6566
env:
6667
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -71,13 +72,13 @@ jobs:
7172
draft: false
7273
prerelease: false
7374

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/')
7677
uses: actions/upload-release-asset@v1
7778
env:
7879
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7980
with:
8081
upload_url: ${{ steps.create_release.outputs.upload_url }}
81-
asset_path: artifacts/${{ matrix.rid }}.zip
82+
asset_path: 'artifacts/${{ matrix.rid }}.zip'
8283
asset_name: ${{ matrix.rid }}-build.zip
8384
asset_content_type: application/zip

0 commit comments

Comments
 (0)