From b94a5f166cb27918adf65a9855c07fb7640fac03 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Tue, 28 Sep 2021 22:03:05 +0200 Subject: [PATCH] Update book workflow --- .github/workflows/book.yml | 12 +++++++----- book/book.toml | 2 +- bors.toml | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 44ae3e09..f2a1f544 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -4,19 +4,21 @@ on: push: branches: - master + - staging + - trying pull_request: paths: - 'book/**' - '.github/workflows/book.yml' jobs: - build: - name: Build + book: + name: Book runs-on: ubuntu-latest env: - MDBOOK_VERSION: '0.4.8' + MDBOOK_VERSION: '0.4.12' MDBOOK_LINKCHECK_VERSION: '0.7.4' - MDBOOK_MERMAID_VERSION: '0.8.1' + MDBOOK_MERMAID_VERSION: '0.8.3' steps: - uses: actions/checkout@v2 - name: Install mdbook @@ -37,7 +39,7 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest - needs: build + needs: book if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - uses: actions/download-artifact@v2 diff --git a/book/book.toml b/book/book.toml index 866aa6a7..e6ef004c 100644 --- a/book/book.toml +++ b/book/book.toml @@ -16,7 +16,7 @@ additional-js =["mermaid.min.js", "mermaid-init.js"] [output.linkcheck] follow-web-links = true traverse-parent-directories = false +exclude = ['bilibili\.com'] [preprocessor] [preprocessor.mermaid] command = "mdbook-mermaid" - diff --git a/bors.toml b/bors.toml index b79c6490..9c43e0d7 100644 --- a/bors.toml +++ b/bors.toml @@ -1,5 +1,6 @@ status = [ "Test (stable, false)", + "Book" ] delete_merged_branches = true timeout_sec = 1200 # 20 min