File tree 1 file changed +19
-6
lines changed
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
demo :
11
+ strategy :
12
+ matrix :
13
+ runs-on :
14
+ - ubuntu-latest
15
+ - macos-latest
16
+ - windows-latest
17
+
11
18
name : Demo
12
- runs-on : ubuntu-latest
19
+ runs-on : ${{ matrix.runs-on }}
13
20
steps :
14
21
- name : Checkout
15
22
uses : actions/checkout@v2
24
31
version : " tags/v0.1.18"
25
32
file : " plague-linux.zip"
26
33
target : " subdir/plague-linux.zip"
27
- - name : Display the details
34
+ - name : Display the outputs
28
35
run : |
29
- echo ${{ steps.get_release.outputs.version }}
30
- echo ${{ steps.get_release.outputs.name }}
31
- echo ${{ steps.get_release.outputs.body }}
32
- ls -l subdir/plague-linux.zip
36
+ echo "${{ steps.get_release.outputs.version }}"
37
+ echo "${{ steps.get_release.outputs.name }}"
38
+ echo "${{ steps.get_release.outputs.body }}"
39
+ - name : Display the file (Linux, Mac)
40
+ run : ls -l subdir/plague-linux.zip
41
+ if : matrix.runs-on != 'windows-latest'
42
+ - name : Display the file (Windows)
43
+ run : dir subdir/plague-linux.zip
44
+ if : matrix.runs-on == 'windows-latest'
45
+
You can’t perform that action at this time.
0 commit comments