Skip to content

Render CV + Deploy (master only) #26

Render CV + Deploy (master only)

Render CV + Deploy (master only) #26

Workflow file for this run

name: Render CV + Deploy (master only)
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: Commit rendered files to current branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update rendered CV (PDF/HTML/MD) for this branch"
file_pattern: render-output/*
- name: Deploy to personal page & profile README (master only)
if: github.ref == 'refs/heads/master'
run: |
mkdir -p deploy
cp render-output/Yury_Zakharov_CV.html deploy/index.html
cp render-output/Yury_Zakharov_CV.md deploy/README.md
- name: Deploy index.html + README.md
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GH_PAT }}
external_repository: Yury-Zakharov/Yury-Zakharov
publish_dir: ./deploy
publish_branch: main
force_orphan: true
destination_dir: .