-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (50 loc) · 1.57 KB
/
statutter.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
---
name: Statutter CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install -qq \
texlive texlive-font-utils \
texlive-lang-european \
texlive-latex-extra \
latexmk \
ghostscript
# Need pandoc 2.9.* for compatibility with pandoc-section-links
- name: Install pandoc
run: |
curl -L https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb -o pandoc.deb
sudo dpkg -i pandoc.deb
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
curl -L "https://github.com/LudvigHz/pandoc-section-links/releases/download/v0.1.0/pandoc-section-links-0.1.0-linux-amd64.tar.gz" | tar xz -C ~/.local/bin
- name: Test
run: make test
- name: Upload build
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: build-files
path: gh-pages
deploy:
runs-on: ubuntu-latest
environment: production
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Collect build artifacts
uses: actions/download-artifact@v4
with:
name: build-files
path: gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
enable_jekyll: true