diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml new file mode 100644 index 0000000..58ba225 --- /dev/null +++ b/.github/workflows/build-pdf.yml @@ -0,0 +1,43 @@ +name: Build PDF + +on: + push: + branches: + - main + +jobs: + build: + name: Build PDF + runs-on: ubuntu-latest + container: + image: ghcr.io/moderncv/debian-texlive-docker:main + steps: + - uses: actions/checkout@v4 + - name: Build PDF + run: | + latexmk -pdf -cd ./src/maxbothe-cv-en.tex + # - name: Copy PDF + # run: | + # ls -R + # mkdir dist + # cp ./src/maxbothe-cv-en.pdf ./dist/maxbothe-cv.pdf + # ls -R + - name: Upload PDF + uses: actions/upload-artifact@v4 + with: + name: maxbothe-cv.pdf + path: ./maxbothe-cv.pdf + deploy: + name: Deploy PDF on Github Pages + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v4 + with: + name: maxbothe-cv.pdf + - name: Bypass Jekyll + run: touch .nojekyll + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}