File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy Python Azure Function
1+ name : Deploy Azure Function (Python v2)
22
33on :
44 push :
55 branches :
66 - main
77
8- env :
9- PYTHON_VERSION : " 3.11"
10-
118jobs :
129 build-and-deploy :
1310 runs-on : ubuntu-latest
@@ -16,17 +13,11 @@ jobs:
1613 - name : Checkout code
1714 uses : actions/checkout@v4
1815
19- - name : Setup Python
20- uses : actions/setup-python@v5
21- with :
22- python-version : ${{ env.PYTHON_VERSION }}
23-
24- - name : Install dependencies
25- run : pip install -r requirements.txt
26-
27- - name : Deploy to Azure Functions
16+ - name : Deploy to Azure Functions using Zip Deploy (remote build)
2817 uses : Azure/functions-action@v1
2918 with :
3019 app-name : " func-plc-dev-001"
3120 package : " ."
3221 publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B1F462AC55CE4BE08A8A1DC7A595646D }}
22+ scm-do-build-during-deployment : true
23+ enable-oryx-build : true
You can’t perform that action at this time.
0 commit comments