Skip to content

Commit be4e5d0

Browse files
committed
feat: Add GitHub Actions workflow for Azure Web App deployment and create backend requirements.txt.
1 parent 86ee330 commit be4e5d0

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

.github/workflows/main_gymbro.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
18-
1916
steps:
2017
- uses: actions/checkout@v4
2118

@@ -24,37 +21,27 @@ jobs:
2421
with:
2522
python-version: '3.11'
2623

27-
- name: Install dependencies
28-
working-directory: ./backend
29-
run: |
30-
python -m venv antenv
31-
source antenv/bin/activate
32-
pip install -r requirements.txt
33-
34-
- name: Prepare deployment package
24+
# Copy all files from backend to a clean working directory
25+
- name: Prepare deployment folder
3526
run: |
36-
mkdir deploy
37-
cp -r backend/* deploy/
38-
rm -rf deploy/antenv deploy/.venv deploy/.env deploy/__pycache__ deploy/.pytest_cache
27+
mkdir python-app
28+
rsync -a --exclude='.venv' --exclude='antenv' --exclude='.env' --exclude='__pycache__' --exclude='.pytest_cache' backend/ python-app/
3929
4030
- name: Upload artifact for deployment jobs
4131
uses: actions/upload-artifact@v4
4232
with:
4333
name: python-app
44-
path: deploy/
34+
path: python-app/
4535

4636
deploy:
4737
runs-on: ubuntu-latest
4838
needs: build
49-
permissions:
50-
id-token: write
51-
contents: read
52-
5339
steps:
5440
- name: Download artifact from build job
5541
uses: actions/download-artifact@v4
5642
with:
5743
name: python-app
44+
path: .
5845

5946
- name: Login to Azure
6047
uses: azure/login@v2

backend/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ websockets>=12.0
1515
aiofiles>=23.2.1
1616

1717
# Vision Agents with Stream, Gemini, Deepgram, ElevenLabs, and YOLO
18-
vision-agents[getstream,gemini,deepgram,elevenlabs,nvidia,huggingface,ultralytics]>=0.3.0
18+
vision-agents[getstream,gemini,deepgram,elevenlabs]>=0.3.0
1919

2020
# Email
2121
aiosmtplib==3.0.1

0 commit comments

Comments
 (0)