1 | # Upload Assets Plugin
|
2 |
|
3 | Upload assets to the release. Good for executables and extra downloadable files.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | This plugin is not included with the `auto` CLI installed via NPM. To install:
|
8 |
|
9 | ```sh
|
10 | npm i --save-dev @auto-it/upload-assets
|
11 | # or
|
12 | yarn add -D @auto-it/upload-assets
|
13 | ```
|
14 |
|
15 | ## Usage
|
16 |
|
17 | Simply supply the paths to the assets to add to the release.
|
18 |
|
19 | ```json
|
20 | {
|
21 | "plugins": [
|
22 | ["upload-assets", { "assets": ["./path/to/file"] }],
|
23 | // or
|
24 | ["upload-assets", ["./path/to/file"]],
|
25 | // or use globs to upload multiple things
|
26 | ["upload-assets", ["./path/**/to/*.file"]]
|
27 | ]
|
28 | }
|
29 | ```
|