| 1 | name: Artifacts |
| 2 | on: [push] |
| 3 | jobs: |
| 4 | build: |
| 5 | runs-on: ubuntu-latest |
| 6 | steps: |
| 7 | - run: mkdir -p out && echo hello > out/a.txt |
| 8 | - uses: actions/upload-artifact@v4 |
| 9 | with: |
| 10 | name: out |
| 11 | path: out/ |
| 12 | if-no-files-found: error |
| 13 | use: |
| 14 | needs: build |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/download-artifact@v4 |
| 18 | with: |
| 19 | name: out |
| 20 | - run: cat a.txt |