From 430c80845520ef172ac890e3b5eb79334530c85a Mon Sep 17 00:00:00 2001 From: Zuri Klaschka Date: Wed, 5 Jun 2024 10:49:16 +0200 Subject: [PATCH] Better GH Pages Deployment #2 --- .github/workflows/pages.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1c5692e..1ddae37 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -7,6 +7,13 @@ on: jobs: deploy: + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} runs-on: ubuntu-latest steps: - name: Checkout @@ -32,7 +39,7 @@ jobs: uses: actions/upload-pages-artifact@v2 with: # upload entire directory - path: './_site' + path: "./_site" - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2