Skip to content

Commit 81e1d83

Browse files
Merge pull request #5865 from akveo/azureCliDeploy-demo
add azure cli deploy demo
2 parents bb868ad + e652239 commit 81e1d83

File tree

2 files changed

+40
-29
lines changed

2 files changed

+40
-29
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to demo (azure storage)
2+
3+
on:
4+
push:
5+
branches:
6+
- demo
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js 10.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '10.x'
17+
- uses: actions/checkout@v2
18+
with:
19+
ref: demo
20+
- name: npm install, build
21+
run: |
22+
npm install
23+
npm run build:demo:prod
24+
25+
# Azure CLI Upload to storage
26+
- uses: azure/login@v1
27+
with:
28+
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
29+
- name: Upload to blob storage
30+
uses: azure/CLI@v1
31+
with:
32+
azcliversion: 2.0.72
33+
inlineScript: |
34+
az storage blob upload-batch -d '$web' -s dist --account-name ngxadmin --debug
35+
36+
# Azure logout
37+
- name: logout
38+
run: |
39+
az logout
40+
if: always()

.github/workflows/demoDeploy.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)