Skip to content

Commit 1d8d7b9

Browse files
committed
feat: 修正发布报错问题
1 parent 9358e61 commit 1d8d7b9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ jobs:
5757
echo "$(pwd)/bin" >> "${GITHUB_PATH}"
5858
5959
- name: Install mdbook-typst-pdf
60-
run: cargo install mdbook-typst-pdf --version ${MDBOOK_TYPST_PDF_VERSION}
60+
run: |
61+
if ! command -v mdbook-typst-pdf &> /dev/null; then
62+
cargo install mdbook-typst-pdf --version ${MDBOOK_TYPST_PDF_VERSION}
63+
else
64+
echo "mdbook-typst-pdf already installed (from cache)"
65+
fi
6166
6267
# 2. 编译
6368
- name: Build book

0 commit comments

Comments
 (0)