diff --git a/.github/workflows/pages_static.yml b/.github/workflows/pages_static.yml index c6bfbd9..7fb31b6 100644 --- a/.github/workflows/pages_static.yml +++ b/.github/workflows/pages_static.yml @@ -11,12 +11,6 @@ env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: -# contents: read - pages: write - id-token: write - # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: @@ -51,6 +45,11 @@ jobs: deploy: + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}