File tree Expand file tree Collapse file tree 2 files changed +40
-29
lines changed Expand file tree Collapse file tree 2 files changed +40
-29
lines changed Original file line number Diff line number Diff line change 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()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments