54
54
undergraduate-thesis-en,
55
55
reading-report,
56
56
]
57
+ include :
58
+ - template : graduate-thesis
59
+ label : 硕博·学位论文
60
+ - template : undergraduate-thesis
61
+ label : 本科·毕业设计·论文
62
+ - template : lab-report
63
+ label : 实验报告
64
+ - template : paper-translation
65
+ label : 本科·毕业设计·外文翻译
66
+ - template : presentation-slide
67
+ label : 演示文档
68
+ - template : undergraduate-thesis-en
69
+ label : 本科·毕业设计·论文(全英文专业)
70
+ - template : reading-report
71
+ label : 本科·读书报告
57
72
58
73
steps :
59
74
- uses : actions/checkout@v4
@@ -75,12 +90,11 @@ jobs:
75
90
run : zip -qq -r ./${{ matrix.template }}.zip ./${{ matrix.template }}
76
91
working-directory : ./templates
77
92
- name : Upload ${{ matrix.template }}.zip to release
78
- uses : svenstaro/upload-release-action@v2
79
- with :
80
- repo_token : ${{ secrets.GITHUB_TOKEN }}
81
- file : ./templates/${{ matrix.template }}.zip
82
- asset_name : ${{ matrix.template }}.zip
83
- tag : ${{ github.ref }}
93
+ run : |
94
+ gh release upload ${{ github.ref }} \
95
+ "./templates/${{ matrix.template }}.zip#模板包·${{ matrix.label }} — ${{ matrix.template }}.zip"
96
+ env :
97
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84
98
85
99
publish_cls :
86
100
name : Publish ${{ matrix.cls }}
@@ -89,21 +103,26 @@ jobs:
89
103
90
104
strategy :
91
105
matrix :
92
- cls : [bithesis, bitreport, bitbeamer]
106
+ cls :
107
+ - name : bithesis
108
+ label : 论文
109
+ - name : bitreport
110
+ label : 实验报告
111
+ - name : bitbeamer
112
+ label : 幻灯片
93
113
94
114
steps :
95
115
- uses : actions/checkout@v4
96
116
- name : Download *.cls
97
117
uses : actions/download-artifact@v4
98
118
with :
99
119
name : cls
100
- - name : Upload ${{ matrix.cls }}.cls to release
101
- uses : svenstaro/upload-release-action@v2
102
- with :
103
- repo_token : ${{ secrets.GITHUB_TOKEN }}
104
- file : ${{ matrix.cls }}.cls
105
- asset_name : ${{ matrix.cls }}.cls
106
- tag : ${{ github.ref }}
120
+ - name : Upload ${{ matrix.cls.name }}.cls to release
121
+ run : |
122
+ gh release upload ${{ github.ref }} \
123
+ "${{ matrix.cls.name }}.cls#文档类·${{ matrix.cls.label }} — ${{ matrix.cls.name }}.cls(用于升级替换)"
124
+ env :
125
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
107
126
108
127
release_notes :
109
128
name : Populate release notes with latest changelog and PDFs
@@ -156,18 +175,14 @@ jobs:
156
175
with :
157
176
name : handbooks
158
177
path : handbook
159
- - name : Upload undergraduate-handbook
160
- uses : svenstaro/upload-release-action@v2
161
- with :
162
- repo_token : ${{ secrets.GITHUB_TOKEN }}
163
- file : handbook/undergraduate-handbook.pdf
164
- tag : ${{ github.ref }}
165
- - name : Upload graduate-handbook
166
- uses : svenstaro/upload-release-action@v2
167
- with :
168
- repo_token : ${{ secrets.GITHUB_TOKEN }}
169
- file : handbook/graduate-handbook.pdf
170
- tag : ${{ github.ref }}
178
+ - name : Upload handbooks
179
+ run : |
180
+ gh release upload ${{ github.ref }} \
181
+ "handbook/undergraduate-handbook.pdf#快速使用指南·本科"
182
+ gh release upload ${{ github.ref }} \
183
+ "handbook/graduate-handbook.pdf#快速使用指南·硕博"
184
+ env :
185
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
171
186
172
187
upload_to_ctan :
173
188
name : Upload to CTAN
0 commit comments