R
Railway6mo ago
Mike

railway up from a github action using the npm cli and project token returns 404

project id: ae1a2210-7167-4fcb-b1a8-f3ef6b2672f2 Is this the correct way to deploy in ci? I generated a production token for the project and set it in my repo on RAILWAY_TOKEN and backend is an empty service The error is Failed to upload code with status code 404 Not Found This is my full action:
name: deploy

on:
workflow_run:
workflows: ['checks']
types:
- completed
jobs:
deploy:
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g @railway/cli
- run: railway up --service backend
name: deploy

on:
workflow_run:
workflows: ['checks']
types:
- completed
jobs:
deploy:
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g @railway/cli
- run: railway up --service backend
2 Replies
Percy
Percy6mo ago
Project ID: ae1a2210-7167-4fcb-b1a8-f3ef6b2672f2
Mike
MikeOP6mo ago
nevermind, i'm a dummy, i didn't press the "apply" changes after creating the empty project. all working as intended!
Want results from more Discord servers?
Add your server