-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (47 loc) · 1.18 KB
/
latex.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
53
54
55
name: LaTeX Build
on:
push:
paths:
- "*.tex"
- "*.ttf"
- ".github/workflows/*"
- "*.md"
- "**/*.md"
jobs:
build:
runs-on: ubuntu-latest
container: thomasweise/docker-texlive-full
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install TexLive and other dependencies
run: |
make install
- name: Copy fonts and update font cache
run: |
cp -v *.ttf /usr/local/share/fonts
fc-cache -fv
- name: Build LaTeX files
run: |
make convert
make
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Upload PDF artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-files
path: |
*.pdf
- name: Release
uses: softprops/action-gh-release@v2 # in the future, try ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.commit.outputs.short }}
name: Release ${{ steps.commit.outputs.short }}
draft: false
prerelease: false
files: |
*.pdf