Skip to content

Gradle plugin for uploading static assets to Azure Storage

Notifications You must be signed in to change notification settings

soleo/gradle-azure-assets-publisher

 
 

Repository files navigation

Azure Storage Build Publisher

With this plugin you can upload static assets build to Azure Storage via command line.

Installation

Update your root build.gradle:

buildscript {
    // other stuff here

    dependencies {
        classpath "gradle.plugin.com.xinjiangshao.gradle-azure-assets-publisher:gradle-azure-assets-publisher:[VERSION]"
    }
}

And add this to your app build.gradle:

apply plugin: "com.xinjiangshao.gradle-azure-assets-publisher"

azurePublishConfig {
    connectionString "[CONNECTION_STRING]"
    container "[CONTAINER_NAME]"
    packageTarFile "[PACKAEGE_TAR_FILE]"
}

Configuration

Property Description
connectionString Connection string for your Azure Storage
container Blob container name where your build will be uploaded
path A prefix to be prepended to the apk-file. Basically this can be considered as a path, e.g. you can have something like release/ here to upload to release folder.

Usage

With the plugin installed, a set of new tasks, prefixed "azurePublish" will be added, one for each build type.

For example: to upload a build, run the following from terminal:

gradlew azurePublishAssets

About

Gradle plugin for uploading static assets to Azure Storage

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%