15 Replies
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?
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?
hm, was also interested in this
Untested, but this should do it: https://gist.github.com/Genyus/efbea725199f21f8406fec334808f4e9
Gist
GitHub Actions workflow to deploy Wasp apps to Railway
GitHub Actions workflow to deploy Wasp apps to Railway - deploy.yml
will test out for you!
@miho Tagging you here, you might have something to add.
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 🙂
Hey, any news on updating that github deploy action? Is there an easy way to do this with the Railway Github app hook thing?
@miho FYI
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 🙂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 environmentHere you go ! @alittlefluffy @martinsos @miho
this gives you staging + production environments
@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!Yeah just went digging in the docs and found that, will give that a go thanks !
I used it as a template for my railway multi environment deployment, works like a charm. Thanks a lot @Zuck !