My CD step with github actions started failing without any changes on my github actions or any change on my environments. Out of nowhere it started giving me this error:
Project id: 388443d3-f0e6-45fa-a08b-e91081cdd79a
Run railway up
railway up
shell: /usr/bin/bash -e {0}
env:
RAILWAY_TOKEN: ***
Multiple services found. Please specify a service to deploy to.
Error: Process completed with exit code 1.
This is my railway up snippet:
CD:
runs-on: ubuntu-latest
needs: [CI]
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Install Railway
run: npm i -g @railway/cli
- name: Deploy to Test Environment
run: railway up
if: github.ref == 'refs/heads/test'
env:
RAILWAY_TOKEN: ${{ secrets.TEST_ACTIONS_TOKEN }}
- name: Deploy to Production Environment
run: railway up
if: github.ref == 'refs/heads/main'
env:
RAILWAY_TOKEN: ${{ secrets.PRODUCTION_ACTIONS_TOKEN }}
I have two environments (test and production) and the secret tokens are properly stored on Github project configs.