diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..5a48afc --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,32 @@ +name: Deploy PDF + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build + uses: xu-cheng/latex-action@v2 + with: + root_file: main.tex + - name: Copy + run: | + mkdir out + cp ./main.pdf ./out/main.pdf + - uses: actions/upload-artifact@v2 + with: + name: main + path: out/main.pdf + - name: Deploy + uses: JamesIves/github-pages-deploy-action@3.6.2 + with: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + BRANCH: gh-pages + CLEAN: true + SINGLE_COMMIT: true + FOLDER: out + GIT_CONFIG_NAME: joshuaan + GIT_CONFIG_EMAIL: bot@noreply.joshuaan.com diff --git a/main.pdf b/main.pdf new file mode 100644 index 0000000..8b99d0a Binary files /dev/null and b/main.pdf differ