ci: publish GitHub Pages preview of the catalog#13
Merged
Conversation
Add a Pages workflow that builds the catalog (standalone/non-headless, so the chrome nav + app switcher are present) from the committed apps.json and deploys to GitHub Pages on push to master. The project-site URL (…github.io/knowledge-base/) matches Astro's base (/knowledge-base), so links resolve unchanged. A post-build step rewrites the fragment asset prefix (/__wf/knowledge-base/ → /knowledge-base/) because static Pages has no gateway/nginx to perform that rewrite and /__wf/* is outside the project-site mount. Build is hermetic (vendored fixture — no token/network). Actions are SHA-pinned; permissions limited to the Pages OIDC deploy. Closes #9 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #9.
Adds
.github/workflows/pages.yml— builds the catalog fromapps.jsonand deploys a browsable preview to GitHub Pages on push tomaster(+workflow_dispatch).How it works
npm run build, non-headless) so the preview has the chrome nav bar + app switcher and is usable on its own — not the headless/web-fragment output.https://absaoss.github.io/knowledge-base/lines up with Astro'sbase: /knowledge-base, so links/assets resolve unchanged./__wf/knowledge-base/*, and/__wf/*is outside the project-site mount. A post-build step rewrites/__wf/knowledge-base/ → /knowledge-base/so the marketplace stylesheet resolves todist/style.css. Verified: 0/__wf/refs remain; all referenced paths exist under the mount.GITHUB_TOKEN/network.permissionslimited to the Pages OIDC deploy (pages: write,id-token: write).Repo settings needed
configure-pagesruns withenablement: trueto turn Pages on automatically. If org policy blocks that, enable manually: Settings → Pages → Source: GitHub Actions. Thegithub-pagesenvironment may also need to allow deployments frommaster.Notes
master(this PR won't deploy; it runs CI + PR-requirements only).user-guide+guide-mirror). Swapapps.jsonfor real published apps to preview those instead.Closes #9
🤖 Generated with Claude Code