mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +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:
|
||||
branches:
|
||||
- demo
|
||||
- demo-enable-gh-actions-manual-trigger
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -22,10 +23,23 @@ jobs:
|
|||
npm install
|
||||
npm run build:demo:prod
|
||||
|
||||
# Azure CLI Upload to storage
|
||||
# Azure CLI Clear storage
|
||||
- uses: azure/login@v1
|
||||
with:
|
||||
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
|
||||
uses: azure/CLI@v1
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue