mirror of
https://github.com/Av0idD4rk/firegex.git
synced 2026-10-23 15:30:59 +00:00
Enable Pages on the repository instead of from the workflow
GITHUB_TOKEN cannot create a Pages site - configure-pages reported "Resource not accessible by integration" even with pages: write on the job. Pages is now enabled on the repository with source "GitHub Actions", so the step only has to read the existing configuration.
This commit is contained in:
parent
b95b87977b
commit
a4271de5a4
7
.github/workflows/demo-pages.yml
vendored
7
.github/workflows/demo-pages.yml
vendored
@ -60,12 +60,11 @@ jobs:
|
||||
pages: write
|
||||
id-token: write
|
||||
steps:
|
||||
# Pages is already enabled on this repository with source "GitHub Actions".
|
||||
# The `enablement: true` option cannot replace that here: GITHUB_TOKEN is not
|
||||
# allowed to create a Pages site, whatever permissions the job asks for.
|
||||
- name: Configure Pages
|
||||
uses: actions/configure-pages@v5
|
||||
with:
|
||||
# Turns Pages on (source: GitHub Actions) the first time this runs, so the
|
||||
# repository needs no manual switch flipped in Settings.
|
||||
enablement: true
|
||||
|
||||
- name: Deploy
|
||||
id: deployment
|
||||
|
||||
Loading…
Reference in New Issue
Block a user