-
Notifications
You must be signed in to change notification settings - Fork 43
51 lines (42 loc) · 1.31 KB
/
development_covid19-test-dashboard.yml
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
# 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: DEVELOPMENT deployment
on:
push:
branches:
- v2-development
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@master
- name: Set up Node.js version
uses: actions/setup-node@v2.1.5
with:
node-version: '14.5.0'
- name: Install dependencies
run: |
npm install -g yarn
npm install
yarn install
# NOTE: Do NOT use trailing slashes in the URLs.
# ATTENTION: `BASE_URL` must have the HTTP(S) protocol, but other URLs must not.
- name: Build yarn
env:
CI: false
BUILD_ENV: development
BASE_URL: https://covid19statdev.azureedge.net
MAIN_CDN: c19pubdev.azureedge.net
DOWNLOADS_CDN: c19downloadsdev.azureedge.net
API_ENDPOINT: uks-covid19-pubdash-dev.azure-api.net
NODE_ENV: production
run: |
yarn run build
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2.2.0
with:
app-name: 'covid19-test-dashboard'
slot-name: 'production'
publish-profile: ${{ secrets.AZUREAPPSERVICEDEV }}
package: ./build