Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa6765 committed May 18, 2024
1 parent 702de44 commit 5434602
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/azure-functions-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Specify the Python version
python-version: '3.10' # Specify the Python version

- name: Create virtual environment
run: python3 -m venv .azure_function_fastapi_venv

- name: Activate virtual environment and install dependencies
run: |
source .azure_function_fastapi_venv/bin/activate
pushd './.'
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.txt --target=".python_packages/lib/site-packages"
popd
- name: Azure Login
uses: azure/login@v1
Expand All @@ -38,3 +39,5 @@ jobs:
with:
app-name: ${{ secrets.PROJECT_NAME }} # Replace with your Function App name
package: '.' # Specify the directory to deploy, usually the current directory
scm-do-build-during-deployment: true
enable-oryx-build: true

0 comments on commit 5434602

Please sign in to comment.