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

v0.1.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@v0.1.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@master
      - uses: bacongobbler/azure-blob-storage-upload@master
        with:
          source-dir: _dist
          connection-string: ${{ secrets.ConnectionString }}
          extra-args: '--pattern *.tar.gz*'

Required Variables

Key Value
source-dir The name of the directory you want to upload
connection-string Your Azure Blob Storage connection string.
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 MIT license.