-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 959 Bytes
/
cd.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: "Release"
on: push
#workflow_run:
#workflows: ["Tex format CI"]
#types: [completed]
#branches: "main"
permissions:
contents: write
jobs:
#release:
on-success:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Install deps
run: |
sudo apt update
sudo apt upgrade
sudo apt install texlive-latex-base
# sudo apt install texlive-fonts-recommended
# sudo apt install texlive-fonts-extra
# sudo apt install texlive-latex-extra
- name: Create directory
run: mkdir .build
- name: Build pdfs
run: |
find src -name '*.tex' -exec pdflatex {} \;
mv *.pdf .build
- name: Commit report
run: |
git config --global user.name 'Thomas Lohse'
git config --global user.email '[email protected]'
git commit add .build
git commit -m ".build"
git push