ci: push-to-deploy workflow for relay + wirehead (activates once RAILWAY_TOKEN secret exists)

This commit is contained in:
E committed 2026-10-02 09:16:27 -04:00
1 parent 695caa9ae9
commit fc32c0f52a
2 files changed
+55 -1

No files matched your search

+4 -1
View File
@@ -33,7 +33,10 @@ relay:
wirehead:
@cmp -s scripts/wirehead_bot.py wirehead/bot.py || \
(echo "syncing bot.py from scripts/"; cp scripts/wirehead_bot.py wirehead/bot.py)
(echo "syncing bot.py from scripts/"; cp scripts/wirehead_bot.py wirehead/bot.py; \
git add wirehead/bot.py)
@cmp -s scripts/wirehead_bot.py wirehead/bot.py || \
(echo "FATAL: bot.py did not sync"; exit 1)
@cd wirehead && railway service wirehead && railway up $$(pwd) -y -d 2>&1 | tail -2
@echo "watch: railway logs (from wirehead/) — first cycle within ~1 min"