mirror of
https://github.com/actions/download-artifact.git
synced 2026-10-25 16:07:16 +08:00
Update README.md
This commit is contained in:
1 parent
eddfd6e0fc
commit
062b83e7bf
1 file changed
+36
@@ -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)
|
||||||
Reference in new issue
Block a user