ci: add PR preview workflow for website#4
Merged
Conversation
|
Builds the same static bundle as deploy.yml on pull requests touching website assets, uploads it as a downloadable artifact (14 day retention), and posts/updates a single PR comment with the artifact link. No external services or secrets required. Resolves AGE-3.
Replaces the artifact-download UX with a real preview URL:
- pr-preview.yml now uses rossjrw/pr-preview-action to publish each PR to
gh-pages/pr-preview/pr-N/, served at agentlinux.org/pr-preview/pr-N/.
Action handles open/sync/close lifecycle (auto-removes on close) and
posts a sticky comment with the live link.
- deploy.yml migrates from the GitHub Actions artifact deployment to a
gh-pages branch deploy via JamesIves/github-pages-deploy-action, paired
with clean-exclude=pr-preview/ so prod deploys don't wipe open previews.
After merge, repo Pages source must be flipped to "branch: gh-pages /
(root)" — done via:
gh api -X PUT repos/Roo4L/Agent-Linux/pages \\
-f 'source[branch]=gh-pages' -f 'source[path]=/' -f build_type=legacy
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
05ef0c9 to
8b268f9
Compare
This was referenced May 2, 2026
Roo4L
added a commit
that referenced
this pull request
May 2, 2026
The unanchored `install.sh` pattern matches at any depth. After the gh-pages migration in #4, this caused both: - agentlinux.org/install.sh → 404 (ignored under gh-pages root) - agentlinux.org/pr-preview/pr-N/install.sh → 404 (ignored in previews) Anchoring to `/install.sh` keeps the original intent (don't commit the CI-generated repo-root copy on master) while letting the gh-pages branch and PR previews include their staged install.sh copies. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 tasks
Roo4L
added a commit
that referenced
this pull request
May 2, 2026
…10) The previous deploy used folder: . which rsynced the repo's root .gitignore into the gh-pages temp clone. The action's git add --all then honored that .gitignore and excluded install.sh — making https://agentlinux.org/install.sh return 404 (the canonical curl-pipe URL was broken after the gh-pages migration in #4). Anchoring install.sh in #9 was a partial fix (cleaner intent on master) but did not solve the root issue, since /install.sh still matches the file at the rsync target's root. Stage only the served files into _site/ — no .gitignore is shipped, so git add --all in the temp clone happily includes _site/install.sh. Side benefit: gh-pages and agentlinux.org no longer publish plugin/, docs/, .planning/, CLAUDE.md, etc. — the security review's hygiene note from #4 is now addressed. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
Roo4L
added a commit
that referenced
this pull request
May 3, 2026
Patch on top of v0.3.1 carrying the master-merged follow-ups since the first dogfood failure (AL-18): - PR #7 — three dogfood-discovered installer-path bugs (curl-installer ORG default, --purge sudoers cleanup, GSD + Playwright CLI skill bootstrap wiring, AGENTLINUX_AGENT_HOME export during purge, playwright-cli cd to writable home). - PR #5 — Ubuntu 26.04 (Resolute Raccoon) added to v0.3.0 supported targets. - PR #11 — bump GitHub Actions to Node 24-ready versions. - PR #13 — review-reminder Stop hook + ADR-010 refinement (AL-23). - PR #14 — workspace-cleanup skill. - PR #4 / #9 / #10 — CI / website-deploy fixes. scripts/build-release.sh enforces a three-way version lock — the tag's base version (after stripping any -rc suffix) must equal both plugin/cli/package.json.version and plugin/catalog/catalog.json.version. Bumping both files to 0.3.2 so v0.3.2-rc1 (and eventually v0.3.2 final) clear the gate. Refs: AL-18 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Roo4L
added a commit
that referenced
this pull request
May 3, 2026
Patch on top of v0.3.1 carrying the master-merged follow-ups since the first dogfood failure (AL-18): - PR #7 — three dogfood-discovered installer-path bugs (curl-installer ORG default, --purge sudoers cleanup, GSD + Playwright CLI skill bootstrap wiring, AGENTLINUX_AGENT_HOME export during purge, playwright-cli cd to writable home). - PR #5 — Ubuntu 26.04 (Resolute Raccoon) added to v0.3.0 supported targets. - PR #11 — bump GitHub Actions to Node 24-ready versions. - PR #13 — review-reminder Stop hook + ADR-010 refinement (AL-23). - PR #14 — workspace-cleanup skill. - PR #4 / #9 / #10 — CI / website-deploy fixes. scripts/build-release.sh enforces a three-way version lock — the tag's base version (after stripping any -rc suffix) must equal both plugin/cli/package.json.version and plugin/catalog/catalog.json.version. Bumping both files to 0.3.2 so v0.3.2-rc1 (and eventually v0.3.2 final) clear the gate. Refs: AL-18 Co-Authored-By: Claude Opus 4.7 (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.
Summary
.github/workflows/pr-preview.ymltriggered on PRs touching website assets (index.html,assets/**,CNAME,sitemap.xml,robots.txt,packaging/curl-installer/install.sh).deploy.yml(mirrors thecp packaging/curl-installer/install.sh install.shstep), uploads as a workflow artifact (14-day retention).Test plan
index.html— verify the workflow runs, the artifact uploads, and the preview comment appears.Resolves AGE-3.
🤖 Generated with Claude Code