Skip to content
sunrise

GitHub Action

Upload a Build Artifact to Azure Blob Storage

v4.6 Latest version

Upload a Build Artifact to Azure Blob Storage

sunrise

Upload a Build Artifact to Azure Blob Storage

Upload a build artifact that ca be used by subsequent workflow steps to Azure Blob Storage

Installation

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

              

- name: Upload a Build Artifact to Azure Blob Storage

uses: fixpoint/azblob-upload-artifact@v4.6

Learn more about this action in fixpoint/azblob-upload-artifact

Choose a version

azblob-upload-artifact

Test

This upload artifacts from your workflow to Azure Blob Storage. It follows usage of actions/upload-artifact for easy migration.

See also azblob-download-artifact.

Usage

Get Azure Storage connection strings and specify it to connection-string through Github secrets like:

steps:
  - uses: actions/checkout@v1

  - run: mkdir -p path/to/artifact

  - run: echo hello > path/to/artifact/world.txt

  - uses: fixpoint/azblob-upload-artifact@v4
    with:
      connection-string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
      name: my-artifact
      path: path/to/artifact

To upload artifacts only when the previous step of a job failed, use if: failure():

- uses: fixpoint/azblob-upload-artifact@v4
  if: failure()
  with:
    connection-string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
    name: my-artifact
    path: path/to/artifact

See action.yml for more detail.

License

This scripts and documentation in this project are released under the MIT License.