mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-04 21:31:23 +08:00
ci: fix release workflow checkout
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user