Skip to content

Commit f1ab679

Browse files
committed
edit release workflow
1 parent bf53235 commit f1ab679

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
with:
33-
tag_name: ${{ github.event.inputs.tag_name }}
33+
tag_name: ${{ github.ref_name }}
3434
release_name: ${{ github.event.inputs.release_name }}
3535
body: ${{ github.event.inputs.release_notes }}
3636
draft: ${{ github.event.inputs.release_type == 'draft' }} # not visible to the public
@@ -48,6 +48,7 @@ jobs:
4848
uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0 # Fetch all history for proper Git submodule initialization
51+
ref: ${{ github.event.inputs.ref || github.ref }} # checks out code you specify in github UI
5152

5253
- name: Set up Node.js
5354
uses: actions/setup-node@v3
@@ -141,8 +142,8 @@ jobs:
141142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142143
with:
143144
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
144-
asset_path: ./artifacts/ubuntu/tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_Linux-setup.AppImage
145-
asset_name: tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_Linux-setup.AppImage
145+
asset_path: ./artifacts/ubuntu/tauri-python-sidecar_${{ github.ref }}_x86_x64_Linux-setup.AppImage
146+
asset_name: tauri-python-sidecar_${{ github.ref }}_x86_x64_Linux-setup.AppImage
146147
asset_content_type: application/octet-stream
147148

148149
- name: Upload macOS asset
@@ -152,8 +153,8 @@ jobs:
152153
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153154
with:
154155
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
155-
asset_path: ./artifacts/macos/tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_macOS-setup.dmg
156-
asset_name: tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_macOS-setup.dmg
156+
asset_path: ./artifacts/macos/tauri-python-sidecar_${{ github.ref }}_x86_x64_macOS-setup.dmg
157+
asset_name: tauri-python-sidecar_${{ github.ref }}_x86_x64_macOS-setup.dmg
157158
asset_content_type: application/octet-stream
158159

159160
- name: Upload Windows asset
@@ -163,6 +164,6 @@ jobs:
163164
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164165
with:
165166
upload_url: ${{ needs.create_release.outputs.release_upload_url }}
166-
asset_path: ./artifacts/windows/tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_Windows-setup.zip
167-
asset_name: tauri-python-sidecar_${{ github.event.inputs.tag_name }}_x86_x64_Windows-setup.zip
167+
asset_path: ./artifacts/windows/tauri-python-sidecar_${{ github.ref }}_x86_x64_Windows-setup.zip
168+
asset_name: tauri-python-sidecar_${{ github.ref }}_x86_x64_Windows-setup.zip
168169
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)