generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 214
43 lines (36 loc) · 845 Bytes
/
upload.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
name: Upload
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-24.04
steps:
- name: Dump
run: |
mkdir artifact
echo $GITHUB_SHA > artifact/sha
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: artifact
upload-multiple:
runs-on: ubuntu-24.04
strategy:
matrix:
artifact: [artifact1, artifact2]
sha: [sha1, sha2]
steps:
- name: Dump
run: |
mkdir ${{ matrix.artifact }}
echo $GITHUB_SHA > ${{ matrix.artifact }}/${{ matrix.sha }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}