-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.04 KB
/
upload.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
name: Deploy PDF
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y texlive-full
- name: Compile LaTeX to PDF
run: make
- name: Clone niclaurenti.github.io
uses: actions/checkout@v2
with:
repository: niclaurenti/niclaurenti.github.io
token: ${{ secrets.NICLAURENTI_TOKEN }}
path: niclaurenti.github.io
- name: Copy main.pdf
run: |
cp main.pdf niclaurenti.github.io/files/qft_exercises.pdf
- name: Commit and Push Changes
run: |
cd niclaurenti.github.io
git config user.email "[email protected]"
git config user.name "niclaurenti"
git add files/qft_exercises.pdf
git commit -m "Automated update of qft_exercises.pdf: ${{ github.event.head_commit.message }}"
git push