This commit is contained in:
2026-03-03 19:57:24 +00:00
parent efea5ce832
commit 436d4f61e1

View File

@@ -11,19 +11,21 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Railway CLI #- name: Install Railway CLI
run: railway --version #run: railway --version
# # Manually add the npm global bin to the PATH # # Manually add the npm global bin to the PATH
# export PATH=$(npm prefix -g)/bin:$PATH # export PATH=$(npm prefix -g)/bin:$PATH
# railway --version # railway --version
- name: Check Token Presence - name: Check Token Presence
run: if [ -z "$RAILWAY_TOKEN" ]; then echo "TOKEN IS MISSING"; exit 1; fi run: if [ -z "$RAILWAY_TOKEN" ]; then echo "TOKEN IS MISSING"; exit 1; fi
env: env:4
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Deploy to Railway - name: Deploy to Railway
# Added --verbose to see the real error # Added --verbose to see the real error
run: railway up --ci --service "runner-bridge" --verbose run: |
npm install @railway/cli
npx railway up --ci --service "runner-bridge" --verbose
env: env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}