fix: deploy ONLY index.html + README.md (clean repo) #24
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 ONLY index.html + README.md | |
| 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: Prepare clean deployment (ONLY index.html + README.md) | |
| 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 to Yury-Zakharov repo (personal page + profile README) | |
| 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: . |