Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ on:
types:
- 'phpcs-release'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Permissions should be configured at the job level.
permissions: {}

jobs:
update:
permissions:
contents: write # To clone the repo and to commit the changes.

# Don't run on forks.
if: github.repository == 'PHPCSStandards/schema.phpcodesniffer.com'

Expand Down Expand Up @@ -101,6 +101,10 @@ jobs:
path: _site/

deploy:
permissions:
pages: write # To deploy to Pages.
id-token: write # To verify the deployment originates from an appropriate source.

needs: update

# Don't run on forks.
Expand Down
Loading