thesis: compile and publish thesis
Pedro Lucas Porcellis porcellis@eletrotupi.com · 4 months ago
be4bc5c71bee2d1b407069a4b348a44504d2fa98 Browse filesParents
9e17ee2Changed files
1
Additions
+34
Deletions
0
/dev/null → .github/workflows/thesis.yml
1 +
name: Publish thesis
2 +
3 +
on:
4 +
push:
5 +
branches:
6 +
- master
7 +
paths:
8 +
- 'monografia/**'
9 +
- '.github/workflows/thesis.yml'
10 +
11 +
jobs:
12 +
publish:
13 +
name: Deploy thesis PDF
14 +
runs-on: ubuntu-latest
15 +
16 +
steps:
17 +
- name: Checkout
18 +
uses: actions/checkout@v4
19 +
20 +
- name: Compile LaTeX
21 +
uses: xu-cheng/latex-action@v3
22 +
with:
23 +
root_file: monografia.tex
24 +
working_directory: monografia
25 +
26 +
- name: Upload final PDF
27 +
uses: appleboy/scp-action@v0.1.7
28 +
with:
29 +
host: ${{ secrets.VPS_HOST }}
30 +
username: ${{ secrets.VPS_USER }}
31 +
key: ${{ secrets.VPS_SSH_KEY }}
32 +
source: monografia/monografia.pdf
33 +
target: /srv/static/
34 +
strip_components: 1