2019-06-24 22:40:14 +02:00
|
|
|
# download-artifact
|
2019-07-23 21:28:49 +02:00
|
|
|
|
|
|
|
This downloads artifacts from your build.
|
|
|
|
|
2019-09-09 07:37:19 +02:00
|
|
|
See also [upload-artifact](https://github.com/actions/upload-artifact).
|
|
|
|
|
2019-07-23 21:28:49 +02:00
|
|
|
# Usage
|
|
|
|
|
|
|
|
See [action.yml](action.yml)
|
|
|
|
|
2019-09-18 01:37:29 +02:00
|
|
|
Basic (download to current working directory):
|
2019-07-23 21:28:49 +02:00
|
|
|
```yaml
|
2019-07-26 03:31:50 +02:00
|
|
|
steps:
|
2019-07-23 21:31:39 +02:00
|
|
|
- uses: actions/checkout@master
|
2019-07-23 21:28:49 +02:00
|
|
|
|
2019-07-23 21:31:39 +02:00
|
|
|
- uses: actions/download-artifact@master
|
2019-07-23 21:28:49 +02:00
|
|
|
with:
|
|
|
|
name: my-artifact
|
|
|
|
|
|
|
|
- run: cat my-artifact
|
|
|
|
```
|
|
|
|
|
|
|
|
Download to specific directory:
|
|
|
|
```yaml
|
|
|
|
|
2019-07-26 03:31:50 +02:00
|
|
|
steps:
|
2019-07-23 21:31:39 +02:00
|
|
|
- uses: actions/checkout@master
|
2019-07-23 21:28:49 +02:00
|
|
|
|
2019-07-23 21:31:39 +02:00
|
|
|
- uses: actions/download-artifact@master
|
2019-07-23 21:28:49 +02:00
|
|
|
with:
|
|
|
|
name: my-artifact
|
|
|
|
path: path/to/artifact
|
|
|
|
|
2019-07-23 21:34:36 +02:00
|
|
|
- run: cat path/to/artifact
|
2019-07-23 21:28:49 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|