W
Wasp6mo ago
sachdva

Railway Deployment as Github Action

Anyone have a railway github action?
15 Replies
kapa.ai
kapa.ai6mo ago
Hi @A³Learn. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- There is no official Wasp-specific Railway GitHub Action documented in the knowledge sources. However, there are some relevant pointers: - There is a community effort to streamline Railway deployments for Wasp, including a discussion about one-line deployments and CI/CD improvements, but no ready-to-use GitHub Action is provided in the docs or issues. The Wasp team is working on better Railway integration, as referenced in this PR and related issues, but it is not yet released as a GitHub Action or workflow template for Railway deployments Support one-line deployments to Railway, fully featured. - For general deployment automation, you might look at the wasp-lang/deploy-action repository, which was mentioned in a related discussion, but it is not specifically tailored for Railway and may require adaptation for your use case Implement a Wasp Github CI Action. In summary:
There is no out-of-the-box Railway GitHub Action for Wasp at this time, but there are ongoing efforts and some community scripts you could adapt. If you need a Railway deployment in CI, you will likely need to script it yourself using the Railway CLI within a GitHub Actions workflow. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @A³Learn, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROX6mo ago
hm, was also interested in this
genyus
genyus6mo ago
Gist
GitHub Actions workflow to deploy Wasp apps to Railway
GitHub Actions workflow to deploy Wasp apps to Railway - deploy.yml
sachdva
sachdvaOP6mo ago
will test out for you!
Filip
Filip6mo ago
@miho Tagging you here, you might have something to add.
miho
miho6mo ago
We don't have a Github Action ready yet, but we are working on supporting Railway in the Wasp CLI so - when we release that, we'll update our deploy action to also support Railway 🙂
alittlefluffy
alittlefluffy4w ago
Hey, any news on updating that github deploy action? Is there an easy way to do this with the Railway Github app hook thing?
martinsos
martinsos4w ago
@miho FYI
miho
miho4w ago
As of now - we didn't update the Wasp Github action - but you can replicate it quite easily in your own Github Actions e.g. install Node.js, install Wasp and run wasp deploy railway deploy <project-name> in the end. We'll update the Github Action as soon as possible 🙂
alittlefluffy
alittlefluffy4w ago
How do you make the wasp deploy railway deploy work with the RAILWAY_TOKEN, the railway whoami command fails, and you can't perform the login in the ci environment
Zuck
Zuck3w ago
Here you go ! @alittlefluffy @martinsos @miho
Zuck
Zuck3w ago
this gives you staging + production environments
miho
miho3w ago
@alittlefluffy one thing we discovered is that Railway account tokens work, while project tokens don't work due to railway whoami failing with the project token. You can create the account tokens in our account settings and by not selecting any workspace. @Zuck great workaround, thanks!
alittlefluffy
alittlefluffy3w ago
Yeah just went digging in the docs and found that, will give that a go thanks !
Sam
Sam5d ago
I used it as a template for my railway multi environment deployment, works like a charm. Thanks a lot @Zuck !

Did you find this page helpful?