mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-24 12:58:37 +00:00
Update book workflow
This commit is contained in:
parent
bba8dd57da
commit
b94a5f166c
3 changed files with 9 additions and 6 deletions
12
.github/workflows/book.yml
vendored
12
.github/workflows/book.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
status = [
|
||||
"Test (stable, false)",
|
||||
"Book"
|
||||
]
|
||||
delete_merged_branches = true
|
||||
timeout_sec = 1200 # 20 min
|
||||
|
|
Loading…
Reference in a new issue