Skip to content

Commit 99257d1

Browse files
committed
Change bindings model to v1
1 parent 22774be commit 99257d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy_to_azure.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ jobs:
6666
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
6767
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6868

69-
- name: Deploy to Azure Functions using CLI
70-
uses: azure/CLI@v1
69+
- name: Deploy to Azure Functions
70+
uses: Azure/functions-action@v1
71+
id: deploy-to-function
7172
with:
72-
azcliversion: latest
73-
inlineScript: |
74-
az functionapp deployment source config-zip \
75-
--resource-group hvalfangstresourcegroup \
76-
--name hvalfangstlinuxfunctionapp \
77-
--src release.zip
73+
app-name: 'hvalfangstlinuxfunctionapp'
74+
slot-name: 'Production'
75+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
76+
scm-do-build-during-deployment: true
77+
enable-oryx-build: true
7878

7979
build-react:
8080
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)