From 261e2c250343a21e01e0caff5db4b50031ae5b9e Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sat, 17 Jun 2023 01:21:20 +0800 Subject: [PATCH] Update pages.yml --- .github/workflows/pages.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f85a341..e4c2ea0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -9,12 +9,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - # Allow one concurrent deployment concurrency: group: "pages" @@ -23,6 +17,12 @@ concurrency: jobs: # Single deploy job since we're just deploying deploy: + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + contents: read + pages: write + id-token: write + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}