Demo enable gh actions manual trigger (#5933)

* feat(deploy): enable manual triggering

* fix(deploy): use the default azure/CLI version

* doc(deploy): update action trigger guid

* feat(deploy): enable manual triggering for docs

* feat(deploy): clear storage before uploading

* feat(deploy): use test branch for deploy

* fix(deploy): code clean up

* fix(deploy): command issues

* fix(deploy): command issues

* feat(deploy): switch deploy branch to demo

Co-authored-by: artem.zaiko.ext <artem.zaiko.ext@munichgeneral.com>
This commit is contained in:
azaiko-akveo 2022-04-28 16:10:09 +03:00 committed by d.strigo
parent 2f76eab493
commit 7d31ceeab8

View file

@ -22,10 +22,17 @@ jobs:
npm install npm install
npm run build:demo:prod npm run build:demo:prod
# Azure CLI Upload to storage # Azure CLI
- uses: azure/login@v1 - uses: azure/login@v1
with: with:
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }} creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
# Clear storage
- name: Clear blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob delete-batch -s '$web' --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: