-
Notifications
You must be signed in to change notification settings - Fork 43
52 lines (42 loc) · 1.28 KB
/
master_covid19static.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
52
# 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: PRODUCTION deployment
on:
release:
branches:
- master
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: production
BASE_URL: https://coronavirus.data.gov.uk
MAIN_CDN: c19pub.azureedge.net
DOWNLOADS_CDN: c19downloads.azureedge.net
API_ENDPOINT: api.coronavirus.data.gov.uk
NODE_ENV: production
run: |
yarn run build
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2.2.0
with:
app-name: 'covid19static'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppServiceProd }}
package: ./build