File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 4
4
DOTNET_CLI_TELEMETRY_OPTOUT : 1
5
5
jobs :
6
6
build :
7
- runs-on : windows-latest
7
+ runs-on : ${{matrix.os}}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest, windows-latest, macOS-latest]
8
11
steps :
9
12
- name : Checkout
10
13
uses : actions/checkout@v1
19
22
- name : Build Version
20
23
shell : bash
21
24
run : |
22
- dotnet tool install --global minver-cli --version 2.3.0
25
+ dotnet tool install --global minver-cli --version 2.3.1
23
26
version=$(minver --tag-prefix v)
24
27
echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
25
28
- name : Build
34
37
run : dotnet tool install gpr -g
35
38
- name : Publish CI Packages
36
39
shell : bash
37
- if : github.event_name != 'pull_request'
40
+ if : github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
38
41
run : |
39
42
for package in $(find -name "*.nupkg" | grep "minver" -v); do
40
43
echo "${0##*/}": Pushing $package...
47
50
done
48
51
- name : Publish Release Packages
49
52
shell : bash
50
- if : startsWith(github.ref, 'refs/tags/v')
53
+ if : startsWith(github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
51
54
run : |
52
55
for package in $(find -name "*.nupkg" | grep "minver" -v); do
53
56
echo "${0##*/}": Pushing $package...
You can’t perform that action at this time.
0 commit comments