Skip to content

Commit 8534055

Browse files
committed
fix: Remove Pages enablement parameter - manual setup required
GitHub Actions cannot enable Pages automatically due to security restrictions. The 'enablement' parameter causes 'Resource not accessible by integration' error. Solution: Pages must be manually enabled in repository settings: Settings → Pages → Source: GitHub Actions After manual enablement, this workflow will deploy successfully.
1 parent aa6321b commit 8534055

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ 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
1215

1316
jobs:
1417
deploy:
@@ -33,8 +36,8 @@ jobs:
3336
3437
- name: Setup Pages
3538
uses: actions/configure-pages@v4
36-
with:
37-
enablement: true # Enable GitHub Pages if not already enabled
39+
# Note: GitHub Pages must be manually enabled first in repository settings
40+
# Settings → Pages → Source: GitHub Actions
3841

3942
- name: Prepare website for deployment
4043
run: |

0 commit comments

Comments
 (0)