2 months ago
I'm trying to set up continuous deployment for a project. Right now, I manually pull from main on Github then do railway up. I've set up a deploy.yml to do that automactically after every commit to main. However, it keeps saying my token is invalid. I've tried workspace and account tokens, copied from railway and put directly into Github as secrets. But it still says they're not valid. They don't work for commands like 'RAILWAY_TOKEN=your-token npx railway whoami' either. Any ideas why my tokens don't work?
4 Replies
2 months ago
Scoped tokens do not support commands such as whoami.
Ok, but what about the other issues? The whoami was just a test to see if the token was working at all
2 months ago
Project tokens should use RAILWAY_TOKEN’. Account/workspace tokens should use RAILWAY_API_TOKEN`.
2 months ago
(no markdown available for this content)