mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-03-16 07:04:07 +01:00
25 lines
471 B
YAML
25 lines
471 B
YAML
![]() |
on: [push]
|
||
|
jobs:
|
||
|
upload:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- run: mkdir -p path/to/artifact
|
||
|
|
||
|
- run: echo hello > path/to/artifact/world.txt
|
||
|
|
||
|
- uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
name: my-artifact
|
||
|
path: path/to/artifact/world.txt
|
||
|
|
||
|
download:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- run: "! test -f world.txt"
|
||
|
|
||
|
- uses: actions/download-artifact@v3
|
||
|
with:
|
||
|
name: my-artifact
|
||
|
|
||
|
- run: "test -f world.txt"
|