Skip to content

Commit

Permalink
ci: gh release upload应当使用tag_name
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Jul 25, 2024
1 parent cd01f88 commit 424e5b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
working-directory: ./templates
- name: Upload ${{ matrix.template }}.zip to release
run: |
gh release upload ${{ github.ref }} \
gh release upload ${{ github.event.release.tag_name }} \
"./templates/${{ matrix.template }}.zip#模板包·${{ matrix.label }} — ${{ matrix.template }}.zip"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
name: cls
- name: Upload ${{ matrix.cls.name }}.cls to release
run: |
gh release upload ${{ github.ref }} \
gh release upload ${{ github.event.release.tag_name }} \
"${{ matrix.cls.name }}.cls#文档类·${{ matrix.cls.label }} — ${{ matrix.cls.name }}.cls(用于升级替换)"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -177,9 +177,9 @@ jobs:
path: handbook
- name: Upload handbooks
run: |
gh release upload ${{ github.ref }} \
gh release upload ${{ github.event.release.tag_name }} \
"handbook/undergraduate-handbook.pdf#快速使用指南·本科"
gh release upload ${{ github.ref }} \
gh release upload ${{ github.event.release.tag_name }} \
"handbook/graduate-handbook.pdf#快速使用指南·硕博"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 424e5b8

Please sign in to comment.