-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.13 KB
/
playground.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Playground
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
artifact-upload:
name: Artifact upload
runs-on: ubuntu-latest
strategy:
matrix:
animal: [cat, dog]
steps:
- uses: actions/checkout@v4
- name: Set name
run: |
mkdir build
echo '${{ matrix.animal }}' >> build/${{ matrix.animal }}.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.animal }}
path: build
artifact-download:
name: Artifact download
runs-on: ubuntu-latest
needs: [artifact-upload]
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: build
- name: Check downloaded
run: |
ls -R build
clean-artifacts:
name: Clean artifacts
runs-on: ubuntu-latest
needs: [artifact-download]
if: always()
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: |
artifact-cat