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
Percy2y ago
Project ID: d50bd4c1-5790-4da9-bb43-c17301a6395d
nflxshaki
nflxshakiOP2y ago
d50bd4c1-5790-4da9-bb43-c17301a6395d
Adam
Adam2y 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
nflxshakiOP2y ago
I'm able to deploy using Nixpacks when I connect my github to Railway.
Adam
Adam2y ago
your project is likely not configured correctly through the cli @Brody you’re the cli guy what do you have to say
nflxshaki
nflxshakiOP2y 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
Brody2y ago
I'll do some testing and get back to you that blog is very old after all
nflxshaki
nflxshakiOP2y ago
Okay cool
Brody
Brody2y 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
nflxshakiOP2y ago
That's working for me now
Brody
Brody2y ago
thats awsome i do wonder why adam pinged me though, he knows i dont like git stuff lol
Adam
Adam2y ago
you’re the cli guy and they use the cli
Brody
Brody2y ago
you have a point there
Want results from more Discord servers?
Add your server