-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.15 KB
/
build.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
# build process in order to produce the PDF file of the guide
name: Compile LuaLaTeX main file guidalua.tex
on:
push:
tags:
- 'v*'
jobs:
build_and_upload_guidalua:
runs-on: ubuntu-latest
container:
image: danteev/texlive:latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: 🦁 Compile LuaLaTeX document
run: |
lualatex --shell-escape guidalua
biber guidalua
lualatex --shell-escape guidalua
lualatex --shell-escape guidalua
mkdir assets
cp guidalua.pdf assets/guidalua.pdf
- name: 🎉 Release
uses: softprops/action-gh-release@v1
with:
files: guidalua.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📂 Upload via ftp the PDF file
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: "./assets/"
server-dir: "/httpdocs/home/images/doc/GuideGuIT/"
security: "strict"