Skip to content

Instantly share code, notes, and snippets.

@lukasbach
Created November 15, 2022 11:01
Show Gist options
  • Save lukasbach/abb194a1b7b109742a25c18aa9f9a398 to your computer and use it in GitHub Desktop.
Save lukasbach/abb194a1b7b109742a25c18aa9f9a398 to your computer and use it in GitHub Desktop.
Thesis Deployment
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/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
CLEAN: true
SINGLE_COMMIT: true
FOLDER: out
GIT_CONFIG_NAME: lukasbachbot
GIT_CONFIG_EMAIL: bot@noreply.lukasbach.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment