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:
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

View file

@ -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"

View file

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