From e76f37c30d716f4281a72733b3358133027142ac Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Wed, 27 Aug 2025 18:07:46 +0300 Subject: [PATCH] add deploy staging --- .github/workflows/main_queryweaver.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_queryweaver.yml b/.github/workflows/main_queryweaver.yml index b42a3459..6a53654b 100644 --- a/.github/workflows/main_queryweaver.yml +++ b/.github/workflows/main_queryweaver.yml @@ -8,6 +8,7 @@ on: push: branches: - main + - staging workflow_dispatch: jobs: @@ -64,6 +65,8 @@ jobs: permissions: id-token: write #This is required for requesting the JWT contents: read #This is required for actions/checkout + env: + SLOT_NAME: ${{ github.ref_name == 'main' && 'Production' || github.ref_name == 'staging' && 'staging' }} steps: - name: Download artifact from build job @@ -88,5 +91,5 @@ jobs: id: deploy-to-webapp with: app-name: 'queryweaver' - slot-name: 'Production' + slot-name: ${{ env.SLOT_NAME }} startup-command: 'python -m uvicorn api.index:app --host 0.0.0.0 --port $PORT'