Skip to content

v5.1

v5.1 #14

Workflow file for this run

name: Update resume PDF on published release
on:
release:
# Onlt release when release, and not published
types: [released]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: resume.tex
post_compile: |
mkdir .github/build && \
mv resume.pdf .github/build/${{ secrets.RESUME_FILE_NAME }} && \
cp index.html .github/build/
- name: Confirm PDF is there
run: test -f .github/build/${{ secrets.RESUME_FILE_NAME }}
- name: Add to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ secrets.RESUME_FILE_NAME }}
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: .github/build # The folder the action should deploy.
- name: Clean-up build directory
run: sudo rm --verbose --recursive --force .github/build/