-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) Β· 1.01 KB
/
generate-pdf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Generate PDF from resume
on:
push:
paths:
- "resume.md"
workflow_dispatch:
inputs:
reason:
description: "Re-generate resume PDF"
required: false
default: "Manual trigger"
permissions:
contents: write
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.5.0"
- 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 --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor}}@users.noreply.github.com"
git add output/art_rosnovsky_software_engineer.pdf
git commit -am "update resume PDF"
git push