Skip to content

Upload SPA to Azure Blob

Actions
Deploys a frontend to Azure Blob and activates the index.html file at last
v0.0.2
Latest
Star (0)

GitHub Action to Upload SPA Assets to Azure Blob Storage

This action is uploading a SPA to azure blob and activates the entrypoint at last so that zero downtime is possible. It is designed to use the Azure CLI to upload a directory of your choice to your Azure Blob Storage account and upadte the index.html at the last file. This leads to a zero downtime option.

Usage

Example

Place in a .yml file such as this one in your .github/workflows folder. Refer to the documentation on workflow YAML syntax here.

name: Upload SPA To Azure Blob Storage
on:
  push:
    branches:
      - main
jobs:
  upload:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: CoreHelpers/upload-spa-to-azure-blob@main
        with:
          connectionstring: ${{ secrets.ConnectionString }}
          container: publicweb
          source: _dist

If you want to synchronize local and remote state (for example, if you are publishing a static website), enable the sync flag.

Required Variables

Key Value
connectionstring The connection string to the storage account
container The container name the file should be uploaded to
source The name of the directory you want to upload

License

This project is distributed under the MIT license.

Upload SPA to Azure Blob is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploys a frontend to Azure Blob and activates the index.html file at last
v0.0.2
Latest

Upload SPA to Azure Blob is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.