Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main_queryweaver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- staging
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -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
Expand All @@ -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'