-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.02 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
jobs:
job:
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Install Fonts
run: |
sudo apt-get update
sudo apt-get install fonts-noto-cjk fonts-noto-cjk-extra
- name: Install Tectonic
run: |
# Need to setup tectonic with `uses statement`
curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net | sh
- name: Compile Latex
run: |
./tectonic main.tex
- name: Rename Compiled PDF
run: |
mv main.pdf "CV - Minsu Sun(eng).pdf"
- name: Upload Compiled PDF
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add *.pdf
git commit -m "Add compiled PDF"
git push origin ${{ github.ref_name }}