From 5f87a3e3d9d81f765b8b1f72f751163a99832075 Mon Sep 17 00:00:00 2001 From: Vladimir Makarevich <86239491+VladimirMakarevich23@users.noreply.github.com> Date: Wed, 23 Jun 2021 14:44:38 +0300 Subject: [PATCH] create azureDeploy.yml --- .github/workflows/azureDeploy.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/azureDeploy.yml diff --git a/.github/workflows/azureDeploy.yml b/.github/workflows/azureDeploy.yml new file mode 100644 index 00000000..b76a7fa0 --- /dev/null +++ b/.github/workflows/azureDeploy.yml @@ -0,0 +1,39 @@ +name: Ngx-Admin Blob storage CI + +on: + push: + branches: + - azureCliDeploy-demo + +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: azureCliDeploy-demo + - name: npm install, build + run: | + npm install + npm run build:demo:prod + - uses: actions/checkout@v2 + - 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 --account-name -s -d '$web'. + + # Azure logout + - name: logout + run: | + az logout + if: always()