forked from jaydestro/react-clock-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.13 KB
/
master_reactclockxops.yml
File metadata and controls
45 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Node.js app to Azure Web App - reactclockxops
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: 'Deploy to Azure Web App1'
uses: azure/webapps-deploy@v1
with:
app-name: 'reactclockxops'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_App1 }}
package: .
- name: 'Deploy to Azure Web App2'
uses: azure/webapps-deploy@v1
with:
app-name: 'reactclockxops'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_App2 }}
package: .