Skip to content

Commit a62ac83

Browse files
committed
feat: rename output files to Patrick-Hanford-Resume
1 parent bf46003 commit a62ac83

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/compile.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,25 @@ jobs:
3535
pandoc
3636
3737
- name: Compile PDF
38-
run: xelatex -interaction=nonstopmode -halt-on-error resume.tex
38+
run: |
39+
xelatex -interaction=nonstopmode -halt-on-error resume.tex
40+
mv resume.pdf Patrick-Hanford-Resume.pdf
3941
4042
- name: Generate Markdown
4143
run: node scripts/generate-readme.js
4244

4345
- name: Generate DOCX
44-
run: pandoc resume.md -o resume.docx --from=markdown --to=docx
46+
run: pandoc Patrick-Hanford-Resume.md -o Patrick-Hanford-Resume.docx --from=markdown --to=docx
4547

4648
- name: Update README
47-
run: cp resume.md README.md
49+
run: cp Patrick-Hanford-Resume.md README.md
4850

4951
- name: Commit generated files
5052
if: github.event_name == 'push'
5153
run: |
5254
git config user.name "github-actions[bot]"
5355
git config user.email "github-actions[bot]@users.noreply.github.com"
54-
git add resume.md README.md
56+
git add Patrick-Hanford-Resume.md README.md
5557
git diff --staged --quiet || git commit -m "docs: regenerate resume formats"
5658
git push
5759
@@ -60,18 +62,18 @@ jobs:
6062
with:
6163
name: resume
6264
path: |
63-
resume.pdf
64-
resume.md
65-
resume.docx
65+
Patrick-Hanford-Resume.pdf
66+
Patrick-Hanford-Resume.md
67+
Patrick-Hanford-Resume.docx
6668
6769
- name: Attach to release
6870
if: github.event_name == 'release'
6971
uses: softprops/action-gh-release@v2
7072
with:
7173
files: |
72-
resume.pdf
73-
resume.md
74-
resume.docx
74+
Patrick-Hanford-Resume.pdf
75+
Patrick-Hanford-Resume.md
76+
Patrick-Hanford-Resume.docx
7577
7678
- name: Trigger content repo update
7779
if: github.event_name == 'push'

scripts/generate-readme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const fs = require('fs');
99
const path = require('path');
1010

1111
const texPath = path.join(__dirname, '..', 'resume.tex');
12-
const mdPath = path.join(__dirname, '..', 'resume.md');
12+
const mdPath = path.join(__dirname, '..', 'Patrick-Hanford-Resume.md');
1313

1414
const tex = fs.readFileSync(texPath, 'utf-8');
1515

0 commit comments

Comments
 (0)