mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-22 05:35:29 +00:00
Update README.md
This commit is contained in:
parent
eddfd6e0fc
commit
062b83e7bf
36
README.md
36
README.md
@ -1 +1,37 @@
|
|||||||
# download-artifact
|
# download-artifact
|
||||||
|
|
||||||
|
This downloads artifacts from your build.
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
See [action.yml](action.yml)
|
||||||
|
|
||||||
|
Basic (upload current working directory):
|
||||||
|
```yaml
|
||||||
|
actions:
|
||||||
|
- uses: actions/checkout@latest
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@latest
|
||||||
|
with:
|
||||||
|
name: my-artifact
|
||||||
|
|
||||||
|
- run: cat my-artifact
|
||||||
|
```
|
||||||
|
|
||||||
|
Download to specific directory:
|
||||||
|
```yaml
|
||||||
|
|
||||||
|
actions:
|
||||||
|
- uses: actions/checkout@latest
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@latest
|
||||||
|
with:
|
||||||
|
name: my-artifact
|
||||||
|
path: path/to/artifact
|
||||||
|
|
||||||
|
- run: cat path/to/artifact/my-artifact
|
||||||
|
```
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||||
|
Loading…
Reference in New Issue
Block a user