Skip to content

Commit e62868d

Browse files
committed
Update deployment workflows
1 parent c1204b4 commit e62868d

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.github/workflows/_functionAppDeployTemplate.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ on:
2121
required: true
2222
type: string
2323
description: "Specifies the name of the Azure Function."
24-
function_resource_group_name:
25-
required: true
26-
type: string
27-
description: "Specifies the resouce group name of the Azure Function."
2824
secrets:
2925
TENANT_ID:
3026
required: true
@@ -79,12 +75,9 @@ jobs:
7975
# Deploy Function
8076
- name: Deploy Function
8177
id: function_deploy
82-
working-directory: ${{ inputs.function_directory }}
83-
shell: bash
84-
run: |
85-
zip -r function.zip *
86-
az functionapp deploy \
87-
--resource-group ${{ inputs.function_resource_group_name }} \
88-
--name ${{ inputs.function_name }} \
89-
--src-path ./function.zip \
90-
--type zip
78+
uses: Azure/functions-action@v1
79+
with:
80+
app-name: ${{ inputs.function_name }}
81+
package: ${{ inputs.function_directory }}
82+
scm-do-build-during-deployment: true
83+
enable-oryx-build: true

.github/workflows/functionApp.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
python_version: "3.10"
3131
function_directory: "./code/function"
3232
function_name: "myfunc-dev-fctn001"
33-
function_resource_group_name: "myfunc-dev-app-rg"
3433
secrets:
3534
TENANT_ID: ${{ secrets.TENANT_ID }}
3635
CLIENT_ID: ${{ secrets.CLIENT_ID }}

0 commit comments

Comments
 (0)