feat(deploy): clear storage before uploading

This commit is contained in:
artem.zaiko.ext 2022-04-28 14:53:18 +03:00
parent 0e02b51821
commit 3002c9f9de

View file

@ -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: