Skip to content

Commit bebe331

Browse files
committed
ci: allow official tag dispatch release steps
1 parent 98b5ec7 commit bebe331

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/tauri-build-win-official.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ jobs:
173173
run: node deploy/generate-latest-json.mjs
174174

175175
- name: Publish GitHub release assets
176-
if: github.event_name == 'push'
176+
if: startsWith(github.ref, 'refs/tags/')
177177
env:
178178
GH_TOKEN: ${{ secrets.GT_TOKEN || github.token }}
179179
GH_REPO: ${{ github.repository }}
180180
run: node deploy/publish-github-release.mjs
181181

182182
- name: Upload installer to R2 storage
183183
# tag push 时上传到 R2
184-
if: github.event_name == 'push'
184+
if: startsWith(github.ref, 'refs/tags/')
185185
shell: powershell
186186
run: |
187187
$ErrorActionPreference = "Stop"
@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Upload latest.json to R2 root
217217
# tag push 时上传到 R2
218-
if: github.event_name == 'push'
218+
if: startsWith(github.ref, 'refs/tags/')
219219
shell: powershell
220220
run: |
221221
$ErrorActionPreference = "Stop"
@@ -244,7 +244,7 @@ jobs:
244244
path: latest.json
245245

246246
- name: Publish version metadata
247-
if: github.event_name == 'push'
247+
if: startsWith(github.ref, 'refs/tags/')
248248
env:
249249
VERSION_API_URL: ${{ secrets.VERSION_API_URL }}
250250
VERSION_API_KEY: ${{ secrets.VERSION_API_KEY }}

0 commit comments

Comments
 (0)