Skip to content

Commit

Permalink
Update the directories in the yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
chandima2000 authored Jul 28, 2024
1 parent b9336c0 commit bca740f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main_ai-personal-assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -66,4 +77,4 @@ jobs:
with:
app-name: 'ai-personal-assistant'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_388BD175C4F14980BD1DC1B00342964E }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_388BD175C4F14980BD1DC1B00342964E }}

0 comments on commit bca740f

Please sign in to comment.