name: Deploy to GitHub Pages on: workflow_run: workflows: ["RenderCV"] types: - completed branches: - main jobs: deploy: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest permissions: contents: read pages: write id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout uses: actions/checkout@v6 - name: Setup Pages uses: actions/configure-pages@v6 - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: path: "." - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v5