Update book workflow

This commit is contained in:
Matthijs Brobbel 2021-09-28 22:03:05 +02:00
parent bba8dd57da
commit b94a5f166c
No known key found for this signature in database
GPG key ID: 551189F8515034D3
3 changed files with 9 additions and 6 deletions

View file

@ -4,19 +4,21 @@ on:
push: push:
branches: branches:
- master - master
- staging
- trying
pull_request: pull_request:
paths: paths:
- 'book/**' - 'book/**'
- '.github/workflows/book.yml' - '.github/workflows/book.yml'
jobs: jobs:
build: book:
name: Build name: Book
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
MDBOOK_VERSION: '0.4.8' MDBOOK_VERSION: '0.4.12'
MDBOOK_LINKCHECK_VERSION: '0.7.4' MDBOOK_LINKCHECK_VERSION: '0.7.4'
MDBOOK_MERMAID_VERSION: '0.8.1' MDBOOK_MERMAID_VERSION: '0.8.3'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install mdbook - name: Install mdbook
@ -37,7 +39,7 @@ jobs:
deploy: deploy:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: book
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2

View file

@ -16,7 +16,7 @@ additional-js =["mermaid.min.js", "mermaid-init.js"]
[output.linkcheck] [output.linkcheck]
follow-web-links = true follow-web-links = true
traverse-parent-directories = false traverse-parent-directories = false
exclude = ['bilibili\.com']
[preprocessor] [preprocessor]
[preprocessor.mermaid] [preprocessor.mermaid]
command = "mdbook-mermaid" command = "mdbook-mermaid"

View file

@ -1,5 +1,6 @@
status = [ status = [
"Test (stable, false)", "Test (stable, false)",
"Book"
] ]
delete_merged_branches = true delete_merged_branches = true
timeout_sec = 1200 # 20 min timeout_sec = 1200 # 20 min