Skip to content

Commit 02febdd

Browse files
committed
feat: auto-deploy CV HTML to personal GitHub page (Yury-Zakharov.github.io)
1 parent 408b0ea commit 02febdd

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/render-cv.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Render CV
1+
name: Render CV + Deploy to Personal Page
22

33
on:
44
push:
@@ -9,7 +9,7 @@ jobs:
99
render:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: write # ← this fixes the 403 error
12+
contents: write
1313

1414
steps:
1515
- uses: actions/checkout@v4
@@ -20,7 +20,15 @@ jobs:
2020

2121
- run: nix develop --command rendercv render cv.yaml --output-folder render-output -nopng
2222

23-
- uses: stefanzweifel/git-auto-commit-action@v5
23+
- name: Deploy to Personal GitHub Page
24+
uses: peaceiris/actions-gh-pages@v4
2425
with:
25-
commit_message: "chore: update rendered CV (PDF/HTML/MD)"
26-
file_pattern: render-output/*
26+
personal_token: ${{ secrets.GH_PAT }}
27+
external_repository: Yury-Zakharov/Yury-Zakharov
28+
publish_dir: ./render-output
29+
publish_branch: main
30+
force_orphan: true
31+
destination_dir: .
32+
# Rename CV HTML to index.html so it becomes the homepage
33+
script: |
34+
cp render-output/Yury_Zakharov_CV.html render-output/index.html

0 commit comments

Comments
 (0)