Skip to content

Commit

Permalink
Enable GitHub Pages from within action
Browse files Browse the repository at this point in the history
This enables GitHub Pages from the action, so that users don’t get this error, and then have to enable it manually themselves:

```bash
Error: Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.
```
  • Loading branch information
frankieroberto authored and paulrobertlloyd committed Jul 11, 2024
1 parent 56192e0 commit a0acc6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
with:
enablement: true # Enable GitHub Pages if it's not already
- name: Install dependencies
run: npm ci
- name: Build with Eleventy
Expand Down

0 comments on commit a0acc6f

Please sign in to comment.