-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (42 loc) · 1.05 KB
/
ci.yml
File metadata and controls
56 lines (42 loc) · 1.05 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
46
47
48
49
50
51
52
53
54
55
on:
push:
branches:
- main
pull_request:
name: Continuous Integration
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm run test
- name: Upload build artifacts to artifact store
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: dist
Deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download build artifacts from artifact store
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: dist
- name: Upload to blob storage
uses: Azure/cli@1.0.4
with:
inlineScript: |
az storage blob upload-batch --account-name statichostingwebs -d '$web' -s dist/
- name: logout
run: |
az logout
if: always()