[PR #2287] [CLOSED] CI: rebuild playhorizon.dev when the files its build reads change (hold for token) #4175

Closed
opened 2026-11-03 04:15:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2287
Author: @ludovic111
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: chore/site-redeploy-workflow


📝 Commits (1)

  • 99cd1ac CI: rebuild playhorizon.dev when the files its build reads change on main

📊 Changes

1 file changed (+29 additions, -0 deletions)

View changed files

➕ .github/workflows/site-redeploy.yml (+29 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

On hold until the RAILWAY_TOKEN secret exists. Don't merge before that.

What

After #2286, playhorizon.dev is built by ludovic111/horizon-site. Its build reads README.md, launcher/links.json,
docs/api/, roadmap/roadmap.json and crates/horizon-theme/tokens.css from this repository's main. Railway's watch
patterns used to redeploy the site when those changed. This workflow does it now: on a push to main that touches one
of them (or on a manual run), it runs railway redeploy --from-source for the site service, which builds again.
A plain redeploy would reuse the last image.

  • Triggers: push to main with those paths, and workflow_dispatch. Never pull_request, so fork PRs can't reach the secret.
  • permissions: {}, a 5-minute timeout, and a concurrency group.
  • The Railway CLI is pinned (@railway/cli@5.71.0 through npx), with no third-party actions.
  • RAILWAY_TOKEN is a Railway project token scoped to horizon-site's production environment.

Until this merges, a watcher on the Mac mini does the same job every 10 minutes
(horizon-parity/tools/site_redeploy_watch.sh). It stops once this runs.

How it was tested

actionlint is clean. A real run can only happen once the token exists. After merging, a workflow_dispatch run
checks it, and so does the next README change.

Needs Ludovic

In Railway, open horizon-site → Settings → Tokens, create a token named "horizon main → site redeploy" for the
production environment, and save it in 1Password (vault Agents) as "Railway horizon-site deploy token". The agent
then sets the secret with ~/fleet/op read … | gh secret set RAILWAY_TOKEN.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2287 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/site-redeploy-workflow` --- ### 📝 Commits (1) - [`99cd1ac`](https://github.com/horizon-rust/horizon/commit/99cd1acd4d886ba9d9730a3be8141153080dd935) CI: rebuild playhorizon.dev when the files its build reads change on main ### 📊 Changes **1 file changed** (+29 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/site-redeploy.yml` (+29 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **On hold until the `RAILWAY_TOKEN` secret exists. Don't merge before that.** ## What After #2286, playhorizon.dev is built by ludovic111/horizon-site. Its build reads `README.md`, `launcher/links.json`, `docs/api/`, `roadmap/roadmap.json` and `crates/horizon-theme/tokens.css` from this repository's main. Railway's watch patterns used to redeploy the site when those changed. This workflow does it now: on a push to main that touches one of them (or on a manual run), it runs `railway redeploy --from-source` for the site service, which builds again. A plain `redeploy` would reuse the last image. - Triggers: `push` to main with those paths, and `workflow_dispatch`. Never `pull_request`, so fork PRs can't reach the secret. - `permissions: {}`, a 5-minute timeout, and a concurrency group. - The Railway CLI is pinned (`@railway/cli@5.71.0` through npx), with no third-party actions. - `RAILWAY_TOKEN` is a Railway project token scoped to horizon-site's production environment. Until this merges, a watcher on the Mac mini does the same job every 10 minutes (`horizon-parity/tools/site_redeploy_watch.sh`). It stops once this runs. ## How it was tested `actionlint` is clean. A real run can only happen once the token exists. After merging, a `workflow_dispatch` run checks it, and so does the next README change. ## Needs Ludovic In Railway, open horizon-site → Settings → Tokens, create a token named "horizon main → site redeploy" for the production environment, and save it in 1Password (vault Agents) as "Railway horizon-site deploy token". The agent then sets the secret with `~/fleet/op read … | gh secret set RAILWAY_TOKEN`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4175
No description provided.