diff --git a/.github/workflows/azureCliDeploy.yml b/.github/workflows/azureCliDeploy.yml new file mode 100644 index 0000000..4591636 --- /dev/null +++ b/.github/workflows/azureCliDeploy.yml @@ -0,0 +1,40 @@ +name: Deploy to demo-blur (azure storage) + +on: + push: + branches: + - demo-blur + +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: demo-blur + - name: npm install, build + run: | + npm install + gulp build + + # Azure CLI Upload to storage + - 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 -d '$web' -s release --account-name bluradmin --debug + + # Azure logout + - name: logout + run: | + az logout + if: always()