Process Bus Insight uses a static GitHub Pages landing page stored in docs/ and deployed by .github/workflows/pages.yml.
Use GitHub Actions as the Pages source:
Repository -> Settings -> Pages -> Build and deployment -> Source -> GitHub Actions
Do not use Deploy from a branch for this repository. Branch publishing can leave the site tied to an old branch such as master, which can produce a successful-looking Pages build but still serve a 404 at the public URL after the repository has moved to main.
The public branch should be:
main
Set it in GitHub:
Repository -> Settings -> Branches -> Default branch -> main
Or with GitHub CLI:
gh repo edit masarray/DigSubAnalyzer --default-branch main --delete-branch-on-merge=trueAfter pushing the latest repository content to main, run:
gh workflow run pages.yml --repo masarray/DigSubAnalyzer --ref mainThen check:
gh run list --repo masarray/DigSubAnalyzer --workflow pages.yml --limit 5Public URL:
https://masarray.github.io/DigSubAnalyzer/
Preview:
.\scripts\configure-github-pages-actions.ps1Apply:
.\scripts\configure-github-pages-actions.ps1 -ApplyRun diagnosis:
.\scripts\diagnose-github-pages.ps1The workflow:
- runs on push to
mainand manual dispatch, - verifies required files under
docs/, - uploads
docs/as the GitHub Pages artifact, - deploys the artifact to the
github-pagesenvironment.
Because docs/ is uploaded as the artifact root, docs/index.html becomes:
https://masarray.github.io/DigSubAnalyzer/
It is not served as:
https://masarray.github.io/DigSubAnalyzer/docs/