mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-25 05:29:43 +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:
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue