-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.04 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
name: "Build PDF"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get install -y \
texlive-latex-extra \
texlive-lang-polish \
texlive-fonts-recommended \
texlive-fonts-extra \
make
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "poetry"
- name: Build final document
run: make all
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: statute-pl
path: |
build/statut.pdf
build/statut.tex
- name: Create release (on push to master)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/release-')
with:
files: |
build/statut.pdf
build/statut.tex