mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
feat(deploy): clear storage before uploading
This commit is contained in:
parent
0e02b51821
commit
3002c9f9de
1 changed files with 15 additions and 1 deletions
16
.github/workflows/azureCliDeploy.yml
vendored
16
.github/workflows/azureCliDeploy.yml
vendored
|
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- demo
|
- demo
|
||||||
|
- demo-enable-gh-actions-manual-trigger
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -22,10 +23,23 @@ jobs:
|
||||||
npm install
|
npm install
|
||||||
npm run build:demo:prod
|
npm run build:demo:prod
|
||||||
|
|
||||||
# Azure CLI Upload to storage
|
# Azure CLI Clear storage
|
||||||
- uses: azure/login@v1
|
- uses: azure/login@v1
|
||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
|
||||||
|
|
||||||
|
|
||||||
|
# Azure CLI
|
||||||
|
- uses: azure/login@v1
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
|
||||||
|
# Clear storage
|
||||||
|
- name: Clear blob storage
|
||||||
|
uses: azure/CLI@v1
|
||||||
|
with:
|
||||||
|
inlineScript: |
|
||||||
|
az storage blob delete-batch -d '$web' -s dist --account-name ngxadmin --debug
|
||||||
|
# Upload to storage
|
||||||
- name: Upload to blob storage
|
- name: Upload to blob storage
|
||||||
uses: azure/CLI@v1
|
uses: azure/CLI@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue