Files
Runner-Bridge/.gitea/workflows/deploy.yml
2026-03-03 19:19:35 +00:00

31 lines
891 B
YAML

name: Deploy Runner-Bridge Application
run-name: ${{gitea.actor}} is deploying Runner-Bridge Application 🚀
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Install Railway CLI
# run: |
# npm i -g @railway/cli
# # Manually add the npm global bin to the PATH
# export PATH=$(npm prefix -g)/bin:$PATH
# railway --version
- name: Check Token Presence
run: if [ -z "$RAILWAY_TOKEN" ]; then echo "TOKEN IS MISSING"; exit 1; fi
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Deploy to Railway
# Added --verbose to see the real error
run: railway up --ci --service "runner-bridge" --verbose
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}