-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 1.08 KB
/
build-pdf.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
name: Build PDFs
on:
push:
jobs:
build-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run pdflatex
uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
cd rules
pdflatex battletech-outworlds-wastes.tex
pdflatex battletech-outworlds-wastes.tex
pdflatex battletech-outworlds-wastes-quickstart.tex
pdflatex battletech-outworlds-wastes-quickstart.tex
pdflatex battletech-outworlds-wastes-event.tex
pdflatex battletech-outworlds-wastes-event.tex
pdflatex battletech-outworlds-wastes-errata.tex
pdflatex battletech-outworlds-wastes-errata.tex
cd ..
mv rules/*.pdf .
mv scenarios/*/*.pdf .
ls | grep -vE ".pdf|.md" | xargs rm -rf
- name: Publish PDF
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: ${{ github.ref == 'refs/heads/main' && 'rules-pdf' || 'rules-pdf-staging' }}
force_orphan: true