diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 86f66e9..9e08240 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ "main" ] +permissions: + contents: read + pages: write + id-token: write + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -49,8 +54,20 @@ jobs: REPO_OWNER: ${{ github.event.pull_request.head.repo.owner.login }} - name: build site run: quarto render . - - name: Deploy + - name: Upload Pages artifact if: github.event_name == 'push' - uses: JamesIves/github-pages-deploy-action@v4 + uses: actions/upload-pages-artifact@v3 with: - folder: docs # The folder the action should deploy. + path: docs + + deploy: + if: github.event_name == 'push' + needs: render_site + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4