diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1288c3d..0bbb696 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -40,6 +40,12 @@ jobs: - name: Setup Pages if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/configure-pages@v5 + with: + # Auto-create the Pages site if it doesn't exist yet. Lets the workflow + # bootstrap a fork or fresh clone without a manual Settings → Pages click, + # and prevents the chicken-and-egg failure where the first push to main + # races ahead of the repo-level Pages enablement. + enablement: true - name: Upload Pages artifact if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/upload-pages-artifact@v3