Skip to content

Instantly share code, notes, and snippets.

@DominikPeters
Created January 24, 2022 17:44
Show Gist options
  • Save DominikPeters/201945aa32e04efe45da38f4fe42f89a to your computer and use it in GitHub Desktop.
Save DominikPeters/201945aa32e04efe45da38f4fe42f89a to your computer and use it in GitHub Desktop.
Github Action for compiling a LaTeX document and FTP uploading it to your webserver
# to use, customize values in [[BRACKETS]] and add the password as a secret in the repo settings
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: [[FILENAME]].tex
- name: Push file to server
run: curl --silent --upload-file [[FILENAME]].pdf --user [[USERNAME]]:${{ secrets.ftp_password }} ftp://[[FTP SERVER]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment