From f5d8d10c256dae156b811216e9e8366dae45f2ef Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Sat, 10 Jun 2023 18:48:20 +0200 Subject: [PATCH] refactor: Add permissions, concurrency, manual --- .github/workflows/seo-report.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/seo-report.yaml b/.github/workflows/seo-report.yaml index 99e6669..b7ef165 100644 --- a/.github/workflows/seo-report.yaml +++ b/.github/workflows/seo-report.yaml @@ -1,7 +1,16 @@ name: Unlighthouse SEO Reports on: - [deployment_status] + [deployment_status, workflow_dispatch] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false jobs: build: @@ -25,17 +34,14 @@ jobs: - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v1.0.8 with: - path: './.unlighthouse' + path: ./.unlighthouse deploy: - needs: build - permissions: - pages: write - id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + needs: build steps: - name: Deploy to GitHub Pages id: deployment