Skip to content

Commit 0718ce4

Browse files
committed
0.1.6 Remove PDF files from template during release
Added a step to delete all PDF files from the template directory in the release workflow to prevent packaging unnecessary files.
1 parent 741d37f commit 0718ce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
cp -r core out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/
4040
cp -r assets out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/
4141
cp -r template out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/
42+
# 删除 template 中的 PDF 文件
43+
find out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/template -name "*.pdf" -delete
4244
cp lib.typ out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/
4345
cp typst.toml out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/
4446
cp LICENSE out/${{ env.PKG_NAME }}/${{ env.PKG_VERSION }}/

0 commit comments

Comments
 (0)