thesis: compile and publish thesis
Parents:
9e17ee21 file(s) changed
- .github/workflows/thesis.yml +34 -0
.github/workflows/thesis.yml
@@ -0,0 +1,34 @@
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