-
Notifications
You must be signed in to change notification settings - Fork 71
72 lines (62 loc) · 1.89 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: pages
on:
workflow_run:
workflows: [ci]
branches: [main]
types: [completed]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup mdbook
run: |
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz > mdbook.tar.gz
tar -xvf mdbook.tar.gz
rm mdbook.tar.gz
chmod +x mdbook
- name: set-up dir structure
run: |
mkdir ./_site
- name: build guide book
run: |
mkdir ./_site/guide
./mdbook build -d ../../../_site/guide source/docs/guide
- name: build state_machines book
run: |
mkdir ./_site/state_machines
./mdbook build -d ../../../_site/state_machines source/docs/state_machines
- name: download verusdoc artifact
uses: dawidd6/action-download-artifact@v2
with:
name: verusdoc
workflow: .github/workflows/ci.yml
run_id: ${{ github.event.workflow_run.id }}
workflow_conclusion: success
path: ./_site/verusdoc
- name: add publications and projects page
uses: actions/jekyll-build-pages@v1
with:
source: source/docs/publications-and-projects
destination: ./_site/publications-and-projects
- name: upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: ['build']
steps:
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v1