Skip to content

Commit 4de4948

Browse files
committed
Fix CV PDF issue
1 parent c032b55 commit 4de4948

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ jobs:
8383
- name: Inject Giscus comments into blog posts
8484
run: python inject_comments.py
8585

86-
- name: Copy static files
86+
- name: Copy static files and rewrite CV URL to stable path
8787
run: |
8888
cp CNAME ./_build/html/ 2>/dev/null || true
89+
cp cv.pdf ./_build/html/cv.pdf
90+
# Rewrite hashed CV URL to stable /cv.pdf path
91+
find ./_build/html -name "*.html" -exec sed -i 's|/build/cv-[a-f0-9]\{20,\}\.pdf|/cv.pdf|g' {} \;
8992
9093
- name: Upload artifact
9194
uses: actions/upload-pages-artifact@v4

0 commit comments

Comments
 (0)