eletrotupi / tcc/ .github/workflows/thesis.yml6c571a3ed690948ef2705dc730c097b3a0c09ada
761 B | 34 lines Raw
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