Skip to content

Commit ae6623f

Browse files
committed
Fix GitHub deployment for Python v2 Azure Function
1 parent 7720a79 commit ae6623f

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: Deploy Python Azure Function
1+
name: Deploy Azure Function (Python v2)
22

33
on:
44
push:
55
branches:
66
- main
77

8-
env:
9-
PYTHON_VERSION: "3.11"
10-
118
jobs:
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

0 commit comments

Comments
 (0)