From da131eed5307769e23c95ba3a369be14f25c0ca7 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 28 Jul 2022 13:02:44 +0800 Subject: [PATCH] Set correct permissions and concurrency --- .github/workflows/github-pages.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/github-pages.yaml b/.github/workflows/github-pages.yaml index 2cfb661..ec1a14f 100644 --- a/.github/workflows/github-pages.yaml +++ b/.github/workflows/github-pages.yaml @@ -14,6 +14,17 @@ on: env: CARGO_TERM_COLOR: always +# 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" + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build"