Created
January 24, 2022 17:44
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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