download-artifact/README.md

40 lines
678 B
Markdown
Raw Normal View History

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