@@ -52,31 +52,14 @@ jobs:
5252 git fetch --prune --unshallow
5353 git submodule -q update --init --recursive
5454
55- - name : Fetch Tags for GitVersion
56- run : |
57- git fetch --tags
58-
59- - name : Fetch master for GitVersion
60- if : github.ref != 'refs/heads/master'
61- run : git branch --create-reflog master origin/master
62-
63- - name : Install GitVersion
64- uses : gittools/actions/gitversion/setup@v0.9.3
65- with :
66- versionSpec : " 5.3.x"
67-
68- - name : Use GitVersion
69- id : gitversion # step id used as reference for output values
70- uses : gittools/actions/gitversion/execute@v0.9.3
71-
7255 - name : Setup DotNet SDK
7356 uses : actions/setup-dotnet@v1
7457 with :
75- dotnet-version : " 3.1.101 "
58+ dotnet-version : " 3.1.x "
7659
7760 - name : Build
7861 shell : pwsh
79- run : ./ci-build.ps1 "${{steps.gitversion.outputs.nuGetVersion}}" "${{ matrix.options.framework}}"
62+ run : ./ci-build.ps1 "${{matrix.options.framework}}"
8063
8164 - name : Test
8265 shell : pwsh
@@ -112,33 +95,18 @@ jobs:
11295 git fetch --prune --unshallow
11396 git submodule -q update --init --recursive
11497
115- - name : Fetch Tags for GitVersion
116- run : |
117- git fetch --tags
118-
119- - name : Fetch master for GitVersion
120- if : github.ref != 'refs/heads/master'
121- run : git branch --create-reflog master origin/master
122-
123- - name : Install GitVersion
124- uses : gittools/actions/gitversion/setup@v0.9.3
125- with :
126- versionSpec : " 5.3.x"
127-
128- - name : Use GitVersion
129- id : gitversion # step id used as reference for output values
130- uses : gittools/actions/gitversion/execute@v0.9.3
131-
13298 - name : Setup DotNet SDK
13399 uses : actions/setup-dotnet@v1
134100 with :
135- dotnet-version : " 3.1.101 "
101+ dotnet-version : " 3.1.x "
136102
137103 - name : Pack
138104 shell : pwsh
139- run : ./ci-pack.ps1 "${{steps.gitversion.outputs.nuGetVersion}}"
105+ run : ./ci-pack.ps1
140106
141107 - name : Publish to MyGet
142108 shell : pwsh
143- run : nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
109+ run : |
110+ nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
111+ nuget.exe push .\artifacts\*.snupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v3/index.json
144112 # 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