"Error: Project Token Not Found When Deploying with Railway CLI in GitHub Actions"
killianfra
TRIALOP

a year ago

I'm encountering an issue while attempting to deploy my project to Railway using GitHub Actions. When I run the deployment step, I receive the following error message:
Project Token not found Error: Process completed with exit code 1.

Here is the version of my GitHub Actions workflow:

```yml
name: Build and Deploy
on:
push:
branches:
- master
jobs:
buildanddeploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

  - name: Set up Node.js
    uses: actions/setup-node@v3
    with:
      node-version: 20

  - name: Install dependencies
    run: npm install

  - name: Build project
    run: npm run build

  - name: Set up Railway CLI
    run: npm install -g @railway/cli

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

The Secrets are all setup, but maybe i'm not getting them from the right spot ?

1 Replies

killianfra
TRIALOP

a year ago

N/A


Loading...