File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2
2
# More GitHub Actions for Azure: https://github.com/Azure/actions
3
3
4
- name : Build and deploy Node.js app to Azure Web App - time-tracker-ui
4
+ name : CD process to deploy to App-Service service
5
5
6
6
on :
7
- push :
7
+ # Trigger the workflow on pull request but only for the master branch
8
+ pull_request :
9
+ types : [closed]
8
10
branches :
9
11
- master
10
12
11
13
jobs :
12
14
build-and-deploy :
15
+ name : Deploy to Azure
13
16
runs-on : ubuntu-latest
14
-
17
+ timeout-minutes : 60
15
18
steps :
16
- - uses : actions/checkout@master
19
+ - name : Checkout of master
20
+ uses : actions/checkout@master
17
21
18
22
- name : Set up Node.js version
19
23
uses : actions/setup-node@v1
20
24
with :
21
25
node-version : ' 12.x'
22
26
23
- - name : npm install, build, and test
27
+ - name : ' run: npm install and build '
24
28
run : |
25
29
npm install
26
- npm run build --if-present
27
- # npm run test --if-present
30
+ npm run build --prod --if-present
28
31
29
32
- name : ' Deploy to Azure Web App'
30
33
uses : azure/webapps-deploy@v1
You can’t perform that action at this time.
0 commit comments