Created
November 15, 2022 11:01
-
-
Save lukasbach/abb194a1b7b109742a25c18aa9f9a398 to your computer and use it in GitHub Desktop.
Thesis Deployment
This file contains 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
name: Deploy PDF | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: thesis.tex | |
- name: Copy | |
run: | | |
mkdir out | |
cp ./thesis.pdf ./out/thesis.pdf | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: thesis | |
path: out/thesis.pdf | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
CLEAN: true | |
SINGLE_COMMIT: true | |
FOLDER: out | |
GIT_CONFIG_NAME: lukasbachbot | |
GIT_CONFIG_EMAIL: [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment