Skip to content

Commit bae3268

Browse files
committed
pipe 1
1 parent 47f8dfc commit bae3268

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: CD process to deploy to AzureFuncions
22

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

1010
env:
11-
AZURE_FUNCTIONAPP_NAME: AutomaticClockOuts # set this to your application's name
12-
AZURE_FUNCTIONAPP_PACKAGE_PATH: './AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root
11+
AZURE_FUNCTIONAPP_NAME: 'time-tracker-azure-functions'
12+
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root
1313

1414
jobs:
1515
build-and-deploy:
@@ -21,14 +21,11 @@ jobs:
2121
node-version: '10.x'
2222
- name: 'run npm'
2323
run: |
24-
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
25-
npm install
26-
npm run build --if-present
27-
popd
28-
- name: 'Run Azure Functions Action'
29-
uses: Azure/functions-action@v1
30-
id: fa
31-
with:
32-
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
33-
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
34-
publish-profile: ${{ secrets.SCM_CREDENTIALS }}
24+
ls
25+
# - name: 'Run Azure Functions Action'
26+
# uses: Azure/functions-action@v1
27+
# id: fa
28+
# with:
29+
# app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
30+
# package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
31+
# publish-profile: ${{ secrets.SCM_CREDENTIALS }}

0 commit comments

Comments
 (0)