feat: auto-deploy CV HTML to personal GitHub page (Yury-Zakharov.gith… #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |