2025 update #20
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: Build PDF | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install fonts | |
run: mv fonts/* /usr/share/fonts/ | |
- name: Install latex things | |
run: sudo apt-get install texlive-xetex texlive-fonts-extra | |
- name: Build CV | |
run: xelatex -interaction=nonstopmode MatthewBarberCV.tex | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: CV | |
path: MatthewBarberCV.pdf | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: CV | |
path: MatthewBarberCV.pdf | |
- name: Upload page artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: MatthewBarberCV.pdf | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v2 |