From bca740ffd6c339bce5115a37c3b55671ce8ae081 Mon Sep 17 00:00:00 2001 From: Chandima Maduwantha Date: Sun, 28 Jul 2024 20:29:11 +0530 Subject: [PATCH] Update the directories in the yaml file --- .../workflows/main_ai-personal-assistant.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main_ai-personal-assistant.yml b/.github/workflows/main_ai-personal-assistant.yml index abed047..a0bbd67 100644 --- a/.github/workflows/main_ai-personal-assistant.yml +++ b/.github/workflows/main_ai-personal-assistant.yml @@ -24,23 +24,34 @@ jobs: - name: Create and start virtual environment run: | + cd Prediction python -m venv venv source venv/bin/activate - name: Install dependencies - run: pip install -r requirements.txt + run: | + cd Prediction + pip install -r requirements.txt + + + - name: Collect static files + run: | + cd Prediction + python manage.py collectstatic --noinput # Optional: Add step to run tests here (PyTest, Django test suites, etc.) - name: Zip artifact for deployment - run: zip release.zip ./* -r + run: | + cd Prediction + zip release.zip ./* -r - name: Upload artifact for deployment jobs uses: actions/upload-artifact@v4 with: name: python-app path: | - release.zip + Prediction/release.zip !venv/ deploy: @@ -66,4 +77,4 @@ jobs: with: app-name: 'ai-personal-assistant' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_388BD175C4F14980BD1DC1B00342964E }} \ No newline at end of file + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_388BD175C4F14980BD1DC1B00342964E }}