mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
create azureDeploy
This commit is contained in:
parent
7b2be34873
commit
72ff8a10f4
1 changed files with 39 additions and 0 deletions
39
.github/workflows/azureDeploy.yml
vendored
Normal file
39
.github/workflows/azureDeploy.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Ngx-Admin Blob storage CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- azureCliDeploy-demo
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 10.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '10.x'
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: azureCliDeploy-demo
|
||||
- name: npm install, build
|
||||
run: |
|
||||
npm install
|
||||
npm run build:demo:prod
|
||||
- uses: actions/checkout@v2
|
||||
- uses: azure/login@v1
|
||||
with:
|
||||
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
|
||||
- name: Upload to blob storage
|
||||
uses: azure/CLI@v1
|
||||
with:
|
||||
azcliversion: 2.0.72
|
||||
inlineScript: |
|
||||
az storage blob upload-batch --account-name <STORAGE_ACCOUNT_NAME> -s <source-path> -d '$web'.
|
||||
|
||||
# Azure logout
|
||||
- name: logout
|
||||
run: |
|
||||
az logout
|
||||
if: always()
|
||||
Loading…
Add table
Add a link
Reference in a new issue