mirror of
https://code.forgejo.org/actions/download-artifact.git
synced 2024-12-23 04:06:00 +01:00
Update README.md
This commit is contained in:
parent
eddfd6e0fc
commit
062b83e7bf
1 changed files with 36 additions and 0 deletions
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 a new issue