Skip to content

This action is uploading a build artifact to azure blob and activates the entrypoint at last so that zero downtime is possible

License

Notifications You must be signed in to change notification settings

CoreHelpers/upload-artifact-to-azure-blob

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Action to upload a build artifact to Azure Blob Storage

This action is uploading a build artifact 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-artifact-to-azure-blob@main
        with:
          connectionstring: ${{ secrets.ConnectionString }}
          container: publicweb
          artifact: artifactname

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
artifact The name of the artifact you want to upload

License

This project is distributed under the MIT license.

About

This action is uploading a build artifact to azure blob and activates the entrypoint at last so that zero downtime is possible

Resources

License

Stars

Watchers

Forks

Packages

No packages published