Upload assets to the release. Good for executables and extra downloadable files. Also supports canaries!
NOTE: For canaries to work this plugin must be listed before any other publishing plugin.
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/upload-assets
# or
yarn add -D @auto-it/upload-assets
Simply supply the paths to the assets to add to the release.
{
"plugins": [
["upload-assets", { "assets": ["./path/to/file"] }],
// or
["upload-assets", ["./path/to/file"]],
// or use globs to upload multiple things
["upload-assets", ["./path/**/to/*.file"]]
]
}
Max number of assets to keep in the canary release.
{
"plugins": [
[
"upload-assets",
{
"assets": ["./path/to/file"],
"maxAssets": 100
}
]
]
}