-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (48 loc) · 1.33 KB
/
gh-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
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: amutake/satysfi:0.0.7-26-g9f4b68ec
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.12'
- run: cargo install mdbook-satysfi
- run: |
cd doc/ja
mdbook build
- run: |
export HOME=/root # workaround
eval $(opam env)
opam update
opam install satysfi-class-mdbook-satysfi
satyrographos install
satysfi $(pwd)/doc/ja/book/satysfi/main.saty -o $(pwd)/doc/ja/book/satysfi/ja.pdf
- run: |
mkdir -p pages/ja
cp -r -f doc/ja/book/html/* pages/ja
cp -f doc/ja/book/satysfi/ja.pdf pages/ja
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./pages