From 329fe8d1fcb1e4f3d6a431fbb511aca22b9137d7 Mon Sep 17 00:00:00 2001 From: "George G. Vega Yon" Date: Fri, 22 Nov 2024 13:55:41 -0700 Subject: [PATCH] Hot fix to sphinx workflow --- .github/workflows/sphinx.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sphinx.yaml b/.github/workflows/sphinx.yaml index dc8d835..cca60d4 100644 --- a/.github/workflows/sphinx.yaml +++ b/.github/workflows/sphinx.yaml @@ -9,11 +9,6 @@ on: types: [published] workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - actions: read - pull-requests: write - jobs: build: runs-on: ubuntu-latest @@ -86,6 +81,10 @@ jobs: # Deploy to the github-pages environment # but not on PRs if: ${{ github.event_name != 'pull_request' }} + permissions: + pages: write + id-token: write + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}