@@ -266,7 +266,7 @@ jobs:
266266 name : 🚀 Deploy Engine (Beta)
267267 runs-on : ubuntu-latest
268268 needs : [detect-changes, quality-checks, build-shared]
269- if : needs.quality-checks.result == 'success' && (needs.detect-changes.outputs.has-engine-changes == 'true' || github.event.inputs.force_deploy == 'true') && (needs.build-shared.result == 'success' || needs.build-shared.result == 'skipped')
269+ if : needs.quality-checks.result == 'success' && (needs.detect-changes.outputs.has-engine-changes == 'true' || github.event.inputs.force_deploy == 'true') && (always() && ( needs.build-shared.result == 'success' || needs.build-shared.result == 'skipped' || !needs.build-shared.result) )
270270 environment : beta
271271 outputs :
272272 deployment-url : ${{ steps.deploy.outputs.deployment-url }}
@@ -309,11 +309,6 @@ jobs:
309309 wranglerVersion : " 3.93.0"
310310 command : deploy --minify src/index.ts --env staging
311311
312- - name : 🏥 Health check
313- run : |
314- sleep 30
315- curl -f https://staging-engine.midday.ai/health || echo "Health check failed, but continuing..."
316-
317312 - name : 📢 Deployment notification
318313 if : always()
319314 uses : 8398a7/action-slack@v3
@@ -323,7 +318,7 @@ jobs:
323318 webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
324319 continue-on-error : true
325320
326- # Deploy API second (dependency for dashboard )
321+ # Deploy API (waits for Engine only if Engine has changes )
327322 deploy-api :
328323 name : 🚀 Deploy API (Beta)
329324 runs-on : ubuntu-latest
@@ -371,11 +366,6 @@ jobs:
371366 env :
372367 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
373368
374- - name : 🏥 Health check
375- run : |
376- sleep 60
377- curl -f https://preview-api.midday.ai/health || echo "Health check failed, but continuing..."
378-
379369 - name : 📢 Deployment notification
380370 if : always()
381371 uses : 8398a7/action-slack@v3
@@ -385,7 +375,7 @@ jobs:
385375 webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
386376 continue-on-error : true
387377
388- # Deploy Dashboard (depends on API)
378+ # Deploy Dashboard (waits for API only if API has changes )
389379 deploy-dashboard :
390380 name : 🚀 Deploy Dashboard (Beta)
391381 runs-on : ubuntu-latest
@@ -446,11 +436,6 @@ jobs:
446436 bunx vercel alias --scope=${{ secrets.VERCEL_ORG_ID }} --token=${{ secrets.VERCEL_TOKEN }} set $url beta.midday.ai
447437 echo "deployment-url=https://beta.midday.ai" >> $GITHUB_OUTPUT
448438
449- - name : 🏥 Health check
450- run : |
451- sleep 30
452- curl -f https://beta.midday.ai/api/health || echo "Health check failed, but continuing..."
453-
454439 - name : 📢 Deployment notification
455440 if : always()
456441 uses : 8398a7/action-slack@v3
@@ -501,11 +486,6 @@ jobs:
501486 url=$(bunx vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }})
502487 echo "deployment-url=$url" >> $GITHUB_OUTPUT
503488
504- - name : 🏥 Health check
505- run : |
506- sleep 30
507- curl -f ${{ steps.deploy.outputs.deployment-url }} || echo "Health check failed, but continuing..."
508-
509489 - name : 📢 Deployment notification
510490 if : always()
511491 uses : 8398a7/action-slack@v3
@@ -556,11 +536,6 @@ jobs:
556536 url=$(bunx vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }})
557537 echo "deployment-url=$url" >> $GITHUB_OUTPUT
558538
559- - name : 🏥 Health check
560- run : |
561- sleep 30
562- curl -f ${{ steps.deploy.outputs.deployment-url }} || echo "Health check failed, but continuing..."
563-
564539 - name : 📢 Deployment notification
565540 if : always()
566541 uses : 8398a7/action-slack@v3
@@ -574,7 +549,7 @@ jobs:
574549 post-deployment :
575550 name : 📊 Post-Deployment
576551 runs-on : ubuntu-latest
577- needs : [deploy-engine, deploy-api, deploy-dashboard, deploy-website, deploy-email ]
552+ needs : [deploy-engine, deploy-api, deploy-dashboard]
578553 if : always()
579554 steps :
580555 - name : 🔍 Integration tests
0 commit comments