From 816a12080d04be8e509dc19966a3564fb1dc4ead Mon Sep 17 00:00:00 2001 From: "DESKTOP-Q2JDODV\\Admin" Date: Wed, 23 Jun 2021 13:47:38 +0300 Subject: [PATCH] chore: add azure-cli deploy action workflow --- .github/workflows/azureCliDeploy.yml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/azureCliDeploy.yml diff --git a/.github/workflows/azureCliDeploy.yml b/.github/workflows/azureCliDeploy.yml new file mode 100644 index 00000000..4985ca59 --- /dev/null +++ b/.github/workflows/azureCliDeploy.yml @@ -0,0 +1,41 @@ +name: Ngx-Admin Blob storage CI + +on: + push: + branches: + - demo + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2l + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + node-version: '10.x' + - uses: actions/checkout@v2ll + with: + ref: demo + - name: npm install, build + run: | + npm install + npm run build:demo:prod + + # Azure CLI Upload to storage + - 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 ngxadmin -s dist/ -d '$web'. + + # Azure logout + - name: logout + run: | + az logout + if: always()