All checks were successful
Deploy Runner-Bridge Application / deploy (push) Successful in 1m26s
35 lines
987 B
YAML
35 lines
987 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: 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: |
|
|
curl -fsSL https://railway.app/install.sh | sh
|
|
|
|
# 3. Use the absolute path to the binary
|
|
export PATH=$PATH:/root/.railway/bin
|
|
|
|
echo "Checking version..."
|
|
railway --version
|
|
echo "Deploying to Railway..."
|
|
railway up --ci --service "runner-bridge" --verbose
|
|
env:
|
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
|
RAILWAY_NO_UPDATE_CHECK: true
|