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
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