download-artifact/README.md

40 lines
679 B
Markdown
Raw Normal View History

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