-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1.09 KB
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Documentation
on:
workflow_run:
workflows: ["Release"]
branches:
- v0.0.*
types:
- completed
jobs:
publish:
name: Publish mdbook-bib Manual
env:
MDBOOK_VERSION: 0.4.10
MDBOOK_BIB_VERSION: 0.0.6
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install mdbook + mdbook-bib
run: |
curl -LsSf https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
curl -LsSf https://github.com/francisco-perez-sorrosal/mdbook-bib/releases/download/v${MDBOOK_BIB_VERSION}/mdbook-bib-v${MDBOOK_BIB_VERSION}-linux-amd64.tar.gz | tar xzf -
echo $(pwd) >> $GITHUB_PATH
- name: Run mdbook
run: |
mdbook build manual
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: manual/public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}