-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 1.15 KB
/
build.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
name: Build Constitution
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install apt dependencies for TeX
run: sudo apt-get install -y tex-common texlive-extra-utils texlive-fonts-extra texlive-formats-extra texlive latexmk
- name: Compile LaTeX via latexmk
run: latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf main.tex
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: constitution
path: main.pdf
- name: Copy built constitution to web folder
run: cp main.pdf pages/constitution.pdf
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'pages'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1