Skip to content

Commit d768d58

Browse files
committed
add ref_name to asset_name.
fix tag_name.
1 parent e014442 commit d768d58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
with:
34-
tag_name: ${{ github.ref_name || github.ref }}
34+
tag_name: ${{ github.event.inputs.ref || github.ref_name }}
3535
release_name: ${{ github.event.inputs.release_name }}
3636
body: ${{ github.event.inputs.release_notes }}
3737
draft: ${{ github.event.inputs.release_type == 'draft' }} # not visible to the public
@@ -173,7 +173,7 @@ jobs:
173173
with:
174174
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
175175
asset_path: ./artifacts/ubuntu/ubuntu-latest-artifacts.zip # file location
176-
asset_name: tauri-python-sidecar_linux-setup.zip # display name on release page (not file name)
176+
asset_name: tauri-python-sidecar_${{ github.ref_name }}_linux-setup.zip # display name on release page (not file name)
177177
asset_content_type: application/zip
178178

179179
- name: Upload macOS asset archive
@@ -184,7 +184,7 @@ jobs:
184184
with:
185185
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
186186
asset_path: ./artifacts/macos/macos-latest-artifacts.zip # file location
187-
asset_name: tauri-python-sidecar_macos-setup.zip # display name on release page (not file name)
187+
asset_name: tauri-python-sidecar_${{ github.ref_name }}_macos-setup.zip # display name on release page (not file name)
188188
asset_content_type: application/zip
189189

190190
- name: Upload Windows asset archive
@@ -195,5 +195,5 @@ jobs:
195195
with:
196196
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
197197
asset_path: ./artifacts/windows/windows-latest-artifacts.zip # file location
198-
asset_name: tauri-python-sidecar_windows-setup.zip # display name on release page (not file name)
198+
asset_name: tauri-python-sidecar_${{ github.ref_name }}_windows-setup.zip # display name on release page (not file name)
199199
asset_content_type: application/zip

0 commit comments

Comments
 (0)