Railway up failing with github actions

I'm using github actions to deploy to Railway using the cli railway up The action passes but the build fails on Railway with the error
Nixpacks build failed


Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:
Nixpacks build failed


Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:
I used the github actions tutorial https://blog.railway.app/p/github-actions and have a railway.toml file set in my root directory
Railway Blog
Using Github Actions with Railway
Github Actions come with a pretty neat set of features to automate your workflows. In this post, we talk about using Github Actions to automate your deployments on Railway.
13 Replies
Percy
Percy13mo ago
Project ID: d50bd4c1-5790-4da9-bb43-c17301a6395d
nflxshaki
nflxshaki13mo ago
d50bd4c1-5790-4da9-bb43-c17301a6395d
Adam
Adam13mo ago
Please post your repo that error means that either nothing is getting railway up’d or your repo is configured in a way that isn’t compatible with nixpacks
nflxshaki
nflxshaki13mo ago
I'm able to deploy using Nixpacks when I connect my github to Railway.
Adam
Adam13mo ago
your project is likely not configured correctly through the cli @Brody you’re the cli guy what do you have to say
nflxshaki
nflxshaki13mo ago
This is when using CI/CD with github actions though. In the docs it says to just provide RAILWAY_TOKEN and call railway command.
Brody
Brody13mo ago
I'll do some testing and get back to you that blog is very old after all
nflxshaki
nflxshaki13mo ago
Okay cool
Brody
Brody13mo ago
this was the yml file i ended up with and it works fine
name: Deploy to Railway

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Railway
run: bash <(curl -fsSL cli.new)

- name: Deploy
run: railway up --service ${{secrets.RAILWAY_SERVICE_ID}}
env:
RAILWAY_TOKEN: ${{secrets.RAILWAY_TOKEN}}
name: Deploy to Railway

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Railway
run: bash <(curl -fsSL cli.new)

- name: Deploy
run: railway up --service ${{secrets.RAILWAY_SERVICE_ID}}
env:
RAILWAY_TOKEN: ${{secrets.RAILWAY_TOKEN}}
nflxshaki
nflxshaki13mo ago
That's working for me now
Brody
Brody13mo ago
thats awsome i do wonder why adam pinged me though, he knows i dont like git stuff lol
Adam
Adam13mo ago
you’re the cli guy and they use the cli
Brody
Brody13mo ago
you have a point there
Want results from more Discord servers?
Add your server
More Posts
Receiving emails for deploy crashes for a service that doesn't exist in a project that doesn't existHello, I'm receiving emails saying that a deploy crashed for a service I used to have in a project IError Deploying simple PHP code.Howdy, I tried to deploy using 2 methods ( on other providers including Heroku everything seems worRails API unable to handle requests http error 500 after deployEverything seems to be confirured properly. What I am missing? https://rails-production-8cf3.up.raFailed to deploy due to a daemon errorhey! i'm trying to deploy but it keeps failing due to the following error ``` /router.Router/StartDErrors when trying to complete the Getting Started TutorialNew to Railway and currently going through the start-up guide after getting my domain up-and-runningError deploying Node.js TypeScript starterI'm new here 😉 When I try the template "Node.js TypeScript starter", I get this error: `ERROR: failstarter plan usage not refreshing, and projects status out of syncHey, my start plan's usage is not refreshing. It is currently June, but it still says `May's Free ReError: 403 ForbiddenHello, every time I try to deploy my applicatin from GitHub on Railway, I get this error. But when IStrapi Instance "An error occurred while requesting the API" on buildHey everyone! I am trying to deploy strapi on railway and I managed to get it working yesterday. TwProblems connecting GitHub repositoryRecently I noticed that autodeployment trigger I set up for my project is not working, i.e. the serv