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

2 years ago

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

1 Replies

mkvlrn
HOBBYOP

2 years ago

nevermind, i'm a dummy, i didn't press the "apply" changes after creating the empty project. all working as intended!


Loading...