ops: wirehead bot belongs to the dedicated Railway project (another session's build); drop duplicate deploy paths

This commit is contained in:
E committed 2026-10-02 09:38:04 -04:00
1 parent 2a492b5bcb
commit b3324c7065
6 files changed
+19 -388

No files matched your search

+6 -26
View File
@@ -1,8 +1,10 @@
name: deploy-railway
# Push-to-deploy for the Railway services. Requires a project API token as
# the RAILWAY_TOKEN repo secret (dashboard: project -> Settings -> API
# Push-to-deploy for the CPU relay. Requires a project API token as the
# RAILWAY_TOKEN repo secret (dashboard: saw project -> Settings -> API
# tokens, scope: production environment). Without the secret the job skips
# and deploys stay manual (`make relay` / `make wirehead`).
# and deploys stay manual (`make relay`).
# NOTE: the wirehead X bot lives in the SEPARATE Railway project "wirehead"
# and is owned by another session — never deploy it from this workflow.
on:
push:
branches: [master]
@@ -23,29 +25,7 @@ jobs:
if ! git diff --quiet "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- live/; then
npx -y @railway/cli@latest up --project 11f1d169-3b88-40e7-a054-f4b79e89c138 \
--environment e1abb91d-1146-4601-aabf-cfb9a8eef2b2 \
--service saw --path live --ci --detach
--service saw --path live --detach
else
echo "live/ unchanged - skip"
fi
wirehead:
if: github.repository == 'terrafying/ai-torture-chamber'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy wirehead bot when it changed
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: |
if [ -z "$RAILWAY_TOKEN" ]; then echo "no RAILWAY_TOKEN secret - skipping"; exit 0; fi
CHANGED=$(git diff --name-only "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- \
wirehead/ scripts/wirehead_bot.py)
if [ -n "$CHANGED" ]; then
# canonical bot lives in scripts/; keep the deploy copy in step
cmp -s scripts/wirehead_bot.py wirehead/bot.py || \
{ echo "wirehead/bot.py out of sync with scripts/ - FAIL"; exit 1; }
npx -y @railway/cli@latest up --project 11f1d169-3b88-40e7-a054-f4b79e89c138 \
--environment e1abb91d-1146-4601-aabf-cfb9a8eef2b2 \
--service wirehead --path wirehead --ci --detach
else
echo "wirehead unchanged - skip"
fi