40 lines
772 B
Markdown
40 lines
772 B
Markdown
|
|
# artifacts
|
||
|
|
|
||
|
|
Workflow artifact actions, built on `code.geekeey.de/actions/sdk/artifact`.
|
||
|
|
|
||
|
|
## push
|
||
|
|
|
||
|
|
Upload files as a workflow artifact.
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
- uses: https://code.geekeey.de/actions/artifacts/push@1
|
||
|
|
with:
|
||
|
|
name: my-artifact
|
||
|
|
path: dist
|
||
|
|
pattern: |
|
||
|
|
**/*
|
||
|
|
```
|
||
|
|
|
||
|
|
## pull
|
||
|
|
|
||
|
|
Download and extract a workflow artifact.
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
- uses: https://code.geekeey.de/actions/artifacts/pull@1
|
||
|
|
with:
|
||
|
|
name: my-artifact
|
||
|
|
path: .
|
||
|
|
```
|
||
|
|
|
||
|
|
To download from another run or repository, pass `repository`, `run-id` and a
|
||
|
|
token with read access to its actions:
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
- uses: https://code.geekeey.de/actions/artifacts/pull@1
|
||
|
|
with:
|
||
|
|
name: my-artifact
|
||
|
|
path: .
|
||
|
|
repository: other-owner/other-repo
|
||
|
|
run-id: "123"
|
||
|
|
github-token: ${{ secrets.READ_TOKEN }}
|
||
|
|
```
|