-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.01 KB
/
build-outputs.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
name: Build LaTeX document and other outputs
on:
release:
types: [published]
jobs:
build_pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Compile main PDF for screens
uses: docker://texlive/texlive
with:
args: latexmk -pdflatex main.tex
- name: Compile booklet PDF for printing
uses: docker://texlive/texlive
with:
args: latexmk -pdflatex booklet.tex
- name: Archive PDF outputs
run: |
mkdir pdf-outputs
cp main.pdf pdf-outputs/two.pdf
cp booklet.pdf pdf-outputs/two-booklet.pdf
working-directory: ${{ github.workspace }}
- name: Upload PDFs via FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: 21
local-dir: pdf-outputs/
server-dir: /