Skip to content

Commit d036132

Browse files
authored
Merge pull request #29 from ioet/pipe
including CD pipeline declaration on GithubActions
2 parents cf74f21 + 0e46024 commit d036132

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/CD-azure-functions.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: CD Azure Functions deployment
22

33
on:
4-
# Trigger the workflow on push or pull request,
5-
# but only for the main branch
6-
push:
4+
# Trigger the workflow on pull request but only for the master branch
5+
pull_request:
6+
types: [closed]
77
branches:
8-
- pipe
8+
- master
99

1010
env:
1111
AZURE_FUNCTIONAPP_NAME: 'time-tracker-azure-functions'
@@ -28,10 +28,3 @@ jobs:
2828
npm install
2929
func settings add FUNCTIONS_WORKER_RUNTIME node
3030
func azure functionapp publish time-tracker-azure-functions --node
31-
# - name: 'Run Azure Functions Action'
32-
# uses: Azure/functions-action@v1
33-
# id: fa
34-
# with:
35-
# app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
36-
# package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
37-
# publish-profile: ${{ secrets.SCM_CREDENTIALS }}

0 commit comments

Comments
 (0)