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