-
Notifications
You must be signed in to change notification settings - Fork 128
45 lines (43 loc) · 1.24 KB
/
latex-builder.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
name: Latex Builder
on: [push]
jobs:
make-it:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install LaTex utilities
run: sudo apt-get install -y texlive-full
- name: Get version from file
id: get_version
run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV
- name: Name release from version
id: get_release
run: echo "RELEASE=release_$(cat version)" >> $GITHUB_ENV
- name: Build PDFs
run: make
- name: Upload PDFs archives
uses: actions/upload-artifact@v4
with:
name: modules.pdf
path: |
build/module00.pdf
build/module01.pdf
build/module02.pdf
build/module03.pdf
build/module04.pdf
- name: Bundle Release
uses: softprops/action-gh-release@v2
with:
files: |
build/module00.pdf
build/module01.pdf
build/module02.pdf
build/module03.pdf
build/module04.pdf
name: ${{env.RELEASE}}
tag_name: ${{env.VERSION}}
make_latest: true
body_path: CHANGELOG.md