ci: fix release workflow checkout

This commit is contained in:
MengMengCode
2026-07-16 16:57:46 +08:00
parent 61137b837d
commit 0e3c059236
+4
View File
@@ -108,6 +108,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
steps: steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@@ -122,6 +125,7 @@ jobs:
- name: Publish GitHub Release - name: Publish GitHub Release
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: | run: |
gh release create "$GITHUB_REF_NAME" dist/* --generate-notes || \ gh release create "$GITHUB_REF_NAME" dist/* --generate-notes || \
gh release upload "$GITHUB_REF_NAME" dist/* --clobber gh release upload "$GITHUB_REF_NAME" dist/* --clobber