-
Notifications
You must be signed in to change notification settings - Fork 1.6k
53 lines (45 loc) · 1.15 KB
/
playground.yaml
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
46
47
48
49
50
51
52
53
name: playground
on:
push:
branches:
- main
paths:
- .github/workflows/playground.yaml
- packages/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checking out for ${{ github.ref }}
uses: actions/checkout@v2
- name: Run npm ci and lerna bootstrap
run: |
npm ci
npm run bootstrap
- run: |
npm run build
cd packages/playground
npm run build
mkdir wwwroot
mv build wwwroot
cp host/* wwwroot
cd wwwroot
npm ci
zip -1rq ../build.zip .
env:
NODE_ENV: production
- uses: actions/upload-artifact@v2
with:
name: wwwroot
path: packages/playground/build.zip
- id: deploy
uses: azure/[email protected]
with:
app-name: webchat-playground
slot-name: production
publish-profile: ${{ secrets.PLAYGROUND_PUBLISH_PROFILE }}
package: packages/playground/build.zip
- name: Ping deployment
run: |
sleep 15
curl -s ${{ steps.deploy.outputs.webapp-url }}