2929 codecov : false
3030
3131 runs-on : ${{matrix.options.os}}
32+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
3233
3334 steps :
3435 - uses : actions/checkout@v2
@@ -44,27 +45,10 @@ jobs:
4445 git fetch --prune --unshallow
4546 git submodule -q update --init --recursive
4647
47- - name : Fetch Tags for GitVersion
48- run : |
49- git fetch --tags
50-
51- - name : Fetch master for GitVersion
52- if : github.ref != 'refs/heads/master'
53- run : git branch --create-reflog master origin/master
54-
55- - name : Install GitVersion
56- uses :
gittools/actions/[email protected] 57- with :
58- versionSpec : " 5.1.x"
59-
60- - name : Use GitVersion
61- id : gitversion # step id used as reference for output values
62- uses :
gittools/actions/[email protected] 63-
6448 - name : Setup DotNet SDK
6549 uses : actions/setup-dotnet@v1
6650 with :
67- dotnet-version : " 3.1.101 "
51+ dotnet-version : " 3.1.x "
6852
6953 - name : Install Azurite Linux
7054 if : matrix.options.os == 'ubuntu-latest'
8569
8670 - name : Build
8771 shell : pwsh
88- run : ./ci-build.ps1 "${{steps.gitversion.outputs.nuGetVersion}}" "${{ matrix.options.framework}}"
72+ run : ./ci-build.ps1 "${{matrix.options.framework}}"
8973
9074 - name : Test
9175 shell : pwsh
@@ -121,33 +105,18 @@ jobs:
121105 git fetch --prune --unshallow
122106 git submodule -q update --init --recursive
123107
124- - name : Fetch Tags for GitVersion
125- run : |
126- git fetch --tags
127-
128- - name : Fetch master for GitVersion
129- if : github.ref != 'refs/heads/master'
130- run : git branch --create-reflog master origin/master
131-
132- - name : Install GitVersion
133- uses :
gittools/actions/[email protected] 134- with :
135- versionSpec : " 5.1.x"
136-
137- - name : Use GitVersion
138- id : gitversion # step id used as reference for output values
139- uses :
gittools/actions/[email protected] 140-
141108 - name : Setup DotNet SDK
142109 uses : actions/setup-dotnet@v1
143110 with :
144- dotnet-version : " 3.1.101 "
111+ dotnet-version : " 3.1.x "
145112
146113 - name : Pack
147114 shell : pwsh
148- run : ./ci-pack.ps1 "${{steps.gitversion.outputs.nuGetVersion}}"
115+ run : ./ci-pack.ps1
149116
150117 - name : Publish to MyGet
151118 shell : pwsh
152- run : nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
119+ run : |
120+ nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
121+ nuget.exe push .\artifacts\*.snupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v3/index.json
153122 # TODO: If github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org
0 commit comments