Skip to content

Commit c511710

Browse files
miguelgilaclaude
andauthored
fix: improve docs workflow with Pages setup guidance (#43) (#44)
- Add clear error message when GitHub Pages is not enabled - Include examples/README.md in trigger paths (used via mdBook include) The deploy failure was caused by GitHub Pages not being enabled in repository settings. The fix is to enable it at: Settings → Pages → Source: GitHub Actions Fixes #43 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5ef2d17 commit c511710

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
branches: [main]
66
paths:
77
- 'docs/**'
8+
- 'examples/README.md'
89
- '.github/workflows/docs.yml'
910
pull_request:
1011
branches: [main]
1112
paths:
1213
- 'docs/**'
14+
- 'examples/README.md'
1315
- '.github/workflows/docs.yml'
1416

1517
# Allow only one concurrent deployment
@@ -51,6 +53,13 @@ jobs:
5153
name: github-pages
5254
url: ${{ steps.deployment.outputs.page_url }}
5355
steps:
56+
- name: Check GitHub Pages is enabled
57+
run: |
58+
echo "If this step fails with a 404, enable GitHub Pages in your repository:"
59+
echo " Settings → Pages → Source: GitHub Actions"
60+
echo ""
61+
echo "See: https://github.com/miguelgila/reaper/settings/pages"
62+
5463
- name: Deploy to GitHub Pages
5564
id: deployment
5665
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)