-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 846 Bytes
/
pages.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
37
on:
push:
branches:
- main
tags:
- '*'
defaults:
run:
shell: bash
jobs:
gh-pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@master
- name: setup mdbook
uses: lmaotrigine/fetch-crate-action@mistress
with:
owner: rust-lang
name: mdBook
bin: mdbook
- name: setup mdbook-linkcheck
uses: lmaotrigine/fetch-crate-action@mistress
with:
owner: Michael-F-Bryan
name: mdbook-linkcheck
- name: build book
run: mdbook build book
- name: deploy to github pages
uses: lmaotrigine/deploy-gh-pages-action@mistress
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: www