-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (70 loc) · 1.63 KB
/
Copy pathpublish.yml
File metadata and controls
77 lines (70 loc) · 1.63 KB
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
73
74
75
76
77
name: github pages
on:
push:
branches:
- main
- forester
paths:
- trees/**
- javascript/**
- assets/**
- Makefile
- .github/workflows/publish.yml
pull_request:
branches:
- main
- forester
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: "install emacs"
run: sudo apt-get install -y emacs
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.1"
- name: Install JS dependencies
run: npm install
- name: Install Forester
run: |
git clone https://git.sr.ht/~jonsterling/ocaml-forester
cd ocaml-forester
opam pin add -y . --locked
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v2
with:
packages: >-
scheme-medium
standalone
mlmodern
amsfonts
amsmath
zx-calculus
tikz-cd
l3packages
dvisvgm
pgf
etoolbox
mathtools
stmaryrd
newtx
newpx
xstring
xpatch
fontaxes
kastrup
spath3
- name: Check `latex` version
run: latex --version
- name: "build forester"
run: make release
- name: "Deploy"
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages