chore: add github action for deploy demo-blur

demo-blur
DESKTOP-Q2JDODV\Admin 2021-06-28 15:58:10 +03:00
parent 7f2596f4ab
commit 90b53bc22c
1 changed files with 40 additions and 0 deletions

40
.github/workflows/azureCliDeploy.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Deploy to demo-blur (azure storage)
on:
push:
branches:
- demo-blur
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: demo-blur
- name: npm install, build
run: |
npm install
gulp build
# Azure CLI Upload to storage
- 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 -d '$web' -s release --account-name bluradmin --debug
# Azure logout
- name: logout
run: |
az logout
if: always()