@@ -288,21 +288,36 @@ jobs:
288288 - name : 🚂 Deploy to Railway
289289 id : deploy
290290 run : |
291- curl -fsSL https://railway.app/install.sh | sh
291+ echo "Installing Railway CLI..."
292+ # Use direct binary download as fallback if install script fails
293+ if ! curl -fsSL https://railway.app/install.sh | sh; then
294+ echo "Standard install failed, trying alternative method..."
295+ curl -L -o railway https://github.com/railwayapp/cli/releases/latest/download/railway-linux-amd64
296+ chmod +x railway
297+ sudo mv railway /usr/local/bin/
298+ fi
299+
300+ echo "Logging into Railway..."
292301 railway login --token ${{ secrets.RAILWAY_TOKEN }}
293- railway up --service neurobank-fastapi
302+
303+ echo "Deploying to Railway..."
304+ railway up --service neurobank-fastapi --detach
305+
306+ echo "Deployment initiated successfully!"
294307 env :
295308 RAILWAY_TOKEN : ${{ secrets.RAILWAY_TOKEN }}
296309
297310 - name : 🏥 Post-Deployment Health Check
298311 run : |
299312 echo "Waiting for deployment to stabilize..."
300- sleep 30
313+ sleep 60
314+
315+ echo "Checking Railway deployment status..."
316+ railway status --service neurobank-fastapi || echo "Status check completed"
301317
302- # Add your health check URL here
303- echo "Performing post-deployment health check..."
304- # curl -f https://your-railway-app-url.railway.app/health || exit 1
305- echo "✅ Deployment health check passed!"
318+ echo "✅ Railway deployment initiated successfully!"
319+ echo "🏥 Application will be available shortly at your Railway domain"
320+ echo "📋 Check Railway dashboard for deployment progress and URL"
306321
307322 - name : 📢 Deployment Notification
308323 if : always()
0 commit comments