Generate PDF from resume #3
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: Generate PDF from resume | |
on: | |
push: | |
paths: | |
- "resume.md" | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: "Re-generate resume PDF" | |
required: false | |
default: "Manual trigger" | |
jobs: | |
generate-pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" # Specify the Node.js version | |
- name: Install dependencies | |
run: npm install -g pnpm && pnpm install # Install dependencies | |
- name: Generate PDF | |
run: pnpm build # Ensure this script generates the PDF from resume.md | |
- name: Commit PDF | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add output/art_rosnovsky_software_engineer.pdf | |
git commit -m "Update resume PDF" -a || echo "No changes to commit" | |
git push |