Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Azure Blob Storage Upload

v1.0.0

Azure Blob Storage Upload

box

Azure Blob Storage Upload

Uploads assets to Azure Blob Storage

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Azure Blob Storage Upload

uses: bacongobbler/azure-blob-storage-upload@v1.0.0

Learn more about this action in bacongobbler/azure-blob-storage-upload

Choose a version

GitHub Action to Upload Assets to Azure Blob Storage

This action is designed to use the Azure CLI to upload a directory of your choice to your Azure Blob Storage account.

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 To Azure Blob Storage
on: push

jobs:
  upload:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1.0.0
      - uses: bacongobbler/azure-blob-storage-upload@master
        with:
          source_dir: _dist
          container_name: www
          connection_string: ${{ secrets.ConnectionString }}
          extra_args: '--pattern *.tar.gz*'

Required Variables

Key Value
source_dir The name of the directory you want to upload.
container_name The name of the storage account container these assets will be uploaded to.
connection_string Your Azure Blob Storage connection string.

Optional Variables

Key Value
extra_args extra arguments that can be passed to az storage blob upload-batch. Useful for passing flags like --pattern or --destination-path.

License

This project is distributed under the Apache 2 license.