feat: deploy ONLY index.html + README.md to personal page & profile #23
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 & Profile README | |
| 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 files | |
| run: | | |
| cp render-output/Yury_Zakharov_CV.html render-output/index.html | |
| cp render-output/Yury_Zakharov_CV.md render-output/README.md | |
| - name: Deploy index.html + README.md only | |
| 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: . | |
| # Keep only the two files we want | |
| script: | | |
| rm -f render-output/*.pdf render-output/*.typ render-output/*.png 2>/dev/null || true | |
| ls -la render-output/ |