title: Why is my static site broken using github action and azure cli to deploy?
body: <p>I'm trying to deploy my static site to Azure storage but have been having issues getting the site open correctly even though the github action executes without errors and the files seem to be in place. In the browser, <code>index.html</code> seems to load along with the css and js.... but the site does not run properly. The console shows a failure in the js:
  <a href="https://i.stack.imgur.com/ONBj0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ONBj0.png" alt="enter image description here" /></a></p>
  <p>The odd thing is that I don't have any issues using the <a href="https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestorage" rel="nofollow noreferrer">azure storage extension</a> in vscode or using the azure cli:</p>
  <p><code>az storage blob upload-batch --account-name &lt;ACCOUNT_NAME&gt; -d '$web' -s ./dist --connection-string '&lt;CONNECTION_STRING&gt;'</code></p>
  <p>when I deploy from my laptop.</p>
  <p>My github action looks like this:</p>
  <pre><code>name: Blob storage website CI
  on:
    push:
      branches: [master]
    pull_request:
      branches: [master]
  
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - name: npm install
          run: |
            npm install
        - name: npm build
          run: |
            npm run build
        - name: Azure Login
          uses: azure/login@v1
          with:
            creds: ${{ secrets.AZURE_CREDENTIALS }}
        - name: Azure CLI script
          uses: azure/CLI@v1
          with:
            azcliversion: latest
            inlineScript: |
              az storage blob upload-batch --account-name &lt;ACCOUNT_NAME&gt; -d '$web' -s ./dist --connection-string '${{ secrets.BLOB_STORAGE_CONNECTION_STRING }}'
            # Azure logout
        - name: logout
          run: |
            az logout
  </code></pre>
  <p>based on <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-static-site-github-actions" rel="nofollow noreferrer">this article here</a>.</p>
  <p>I thought that it might be due to the azure cli version, but none of the versions I've tried have made a difference.</p>
  <p>Any ideas why my site broken using github action and azure cli to deploy?</p>