From 9f821dc0a6fb88637150529ba17861b9fa2b507b Mon Sep 17 00:00:00 2001 From: lispking Date: Wed, 30 Oct 2024 05:04:09 +0800 Subject: [PATCH] fix cd --- .github/actions/build-mdbook/action.yaml | 6 ------ .github/workflows/publish.yml | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/actions/build-mdbook/action.yaml b/.github/actions/build-mdbook/action.yaml index 6846952c..de042347 100644 --- a/.github/actions/build-mdbook/action.yaml +++ b/.github/actions/build-mdbook/action.yaml @@ -37,12 +37,6 @@ runs: url="https://github.com/lzanini/mdbook-katex/releases/download/0.9.0-binaries/mdbook-katex-v0.9.0-x86_64-unknown-linux-gnu.tar.gz" curl -sSL "$url" | tar -xz --directory=bin shell: bash - - name: Install mdbook-i18n-helpers - run: | - curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh - rustup update - cargo install mdbook-i18n-helpers - shell: bash - name: Build the book and check for broken links run: MDBOOK_BOOK__LANGUAGE=zh_CN mdbook build env: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 397c66ec..7b167454 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install mdbook-i18n-helpers + run: | + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh + rustup update + cargo install mdbook-i18n-helpers - uses: ./.github/actions/build-mdbook with: with_linkcheck: "false"