refactor: Add permissions, concurrency, manual

This commit is contained in:
Bart van der Braak 2023-06-10 18:48:20 +02:00
parent aacc5216da
commit f5d8d10c25

View file

@ -1,7 +1,16 @@
name: Unlighthouse SEO Reports name: Unlighthouse SEO Reports
on: on:
[deployment_status] [deployment_status, workflow_dispatch]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs: jobs:
build: build:
@ -25,17 +34,14 @@ jobs:
- name: Upload GitHub Pages artifact - name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1.0.8 uses: actions/upload-pages-artifact@v1.0.8
with: with:
path: './.unlighthouse' path: ./.unlighthouse
deploy: deploy:
needs: build
permissions:
pages: write
id-token: write
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment