Skip to content

feat: auto-deploy CV HTML to personal GitHub page (Yury-Zakharov.gith… #22

feat: auto-deploy CV HTML to personal GitHub page (Yury-Zakharov.gith…

feat: auto-deploy CV HTML to personal GitHub page (Yury-Zakharov.gith… #22

Workflow file for this run

name: Render CV + Deploy to Personal Page
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
nix_version: '2.24'
- run: nix develop --command rendercv render cv.yaml --output-folder render-output -nopng
- name: Deploy to Personal GitHub Page
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GH_PAT }}
external_repository: Yury-Zakharov/Yury-Zakharov
publish_dir: ./render-output
publish_branch: main
force_orphan: true
destination_dir: .
# Rename CV HTML to index.html so it becomes the homepage
script: |
cp render-output/Yury_Zakharov_CV.html render-output/index.html