Skip to content

Commit af4252c

Browse files
committed
Updates
1 parent f0745ce commit af4252c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/deploy_to_azure.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ env:
1010
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
1111
PYTHON_VERSION: '3.11'
1212
STORAGE_ACCOUNT_NAME: 'hvalfangststorageaccount'
13+
FUNCTION_APP_NAME: 'hvalfangstlinuxfunctionapp'
14+
RESOURCE_GROUP: 'hvalfangstresourcegroup'
1315

1416
jobs:
1517
build-function:
@@ -64,15 +66,15 @@ jobs:
6466
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
6567
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6668

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

0 commit comments

Comments
 (0)