Skip to content

Commit 1c68395

Browse files
committed
fix: deploy ONLY index.html + README.md (clean repo)
1 parent af72393 commit 1c68395

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/render-cv.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Render CV + Deploy to Personal Page & Profile README
1+
name: Render CV + Deploy ONLY index.html + README.md
22

33
on:
44
push:
@@ -20,21 +20,18 @@ jobs:
2020

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

23-
- name: Prepare clean deployment files
23+
- name: Prepare clean deployment (ONLY index.html + README.md)
2424
run: |
25-
cp render-output/Yury_Zakharov_CV.html render-output/index.html
26-
cp render-output/Yury_Zakharov_CV.md render-output/README.md
25+
mkdir -p deploy
26+
cp render-output/Yury_Zakharov_CV.html deploy/index.html
27+
cp render-output/Yury_Zakharov_CV.md deploy/README.md
2728
28-
- name: Deploy index.html + README.md only
29+
- name: Deploy to Yury-Zakharov repo (personal page + profile README)
2930
uses: peaceiris/actions-gh-pages@v4
3031
with:
3132
personal_token: ${{ secrets.GH_PAT }}
3233
external_repository: Yury-Zakharov/Yury-Zakharov
33-
publish_dir: ./render-output
34+
publish_dir: ./deploy
3435
publish_branch: main
3536
force_orphan: true
3637
destination_dir: .
37-
# Keep only the two files we want
38-
script: |
39-
rm -f render-output/*.pdf render-output/*.typ render-output/*.png 2>/dev/null || true
40-
ls -la render-output/

0 commit comments

Comments
 (0)