This commit is contained in:
44
.github/workflows/build-resume.yaml
vendored
Normal file
44
.github/workflows/build-resume.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Build and Release Resume PDF
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'main.tex'
|
||||
- '.github/workflows/build-resume.yaml'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install LaTeX dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y latexmk texlive-latex-base texlive-latex-extra texlive-fonts-recommended
|
||||
|
||||
- name: Build PDF
|
||||
run: latexmk -pdf main.tex && mv main.pdf Alice_Huston_Resume_Software_Engineer.pdf
|
||||
|
||||
- name: Upload PDF artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: resume-pdf
|
||||
path: Alice_Huston_Resume_Software_Engineer.pdf
|
||||
|
||||
- name: Create Release
|
||||
if: success()
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: Alice_Huston_Resume_Software_Engineer.pdf
|
||||
tag_name: resume-${{ github.run_number }}
|
||||
body: "Resume PDF built from commit ${{ github.sha }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user