Skip to content

Commit 2fb3657

Browse files
committed
fix: Remove Pages enablement step and update permissions note
GitHub Actions cannot enable Pages automatically due to security restrictions. Pages must be manually enabled in repository settings before deployment. Error fixed: - Resource not accessible by integration - Create Pages site failed Solution: Manual enablement required in Settings → Pages → Source: GitHub Actions
1 parent 9bda6f0 commit 2fb3657

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ permissions:
99
contents: read
1010
pages: write
1111
id-token: write
12+
# Note: GitHub Pages must be manually enabled first:
13+
# Repository Settings → Pages → Source: GitHub Actions
14+
# The workflow cannot enable Pages automatically due to security restrictions
15+
# Additional permissions needed to enable Pages
16+
administration: write
1217

1318
jobs:
1419
deploy:

0 commit comments

Comments
 (0)