Skip to content

Commit 424e5b8

Browse files
ci: gh release upload应当使用tag_name
1 parent cd01f88 commit 424e5b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
working-directory: ./templates
9292
- name: Upload ${{ matrix.template }}.zip to release
9393
run: |
94-
gh release upload ${{ github.ref }} \
94+
gh release upload ${{ github.event.release.tag_name }} \
9595
"./templates/${{ matrix.template }}.zip#模板包·${{ matrix.label }} — ${{ matrix.template }}.zip"
9696
env:
9797
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -119,7 +119,7 @@ jobs:
119119
name: cls
120120
- name: Upload ${{ matrix.cls.name }}.cls to release
121121
run: |
122-
gh release upload ${{ github.ref }} \
122+
gh release upload ${{ github.event.release.tag_name }} \
123123
"${{ matrix.cls.name }}.cls#文档类·${{ matrix.cls.label }} — ${{ matrix.cls.name }}.cls(用于升级替换)"
124124
env:
125125
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -177,9 +177,9 @@ jobs:
177177
path: handbook
178178
- name: Upload handbooks
179179
run: |
180-
gh release upload ${{ github.ref }} \
180+
gh release upload ${{ github.event.release.tag_name }} \
181181
"handbook/undergraduate-handbook.pdf#快速使用指南·本科"
182-
gh release upload ${{ github.ref }} \
182+
gh release upload ${{ github.event.release.tag_name }} \
183183
"handbook/graduate-handbook.pdf#快速使用指南·硕博"
184184
env:
185185
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)