99
1010env :
1111 ARTIFACTS_FEED_URL : https://api.nuget.org/v3/index.json
12- DOTNET_VERSION : " 6.x"
1312
1413jobs :
1514 publish :
@@ -21,36 +20,27 @@ jobs:
2120 with :
2221 fetch-depth : 0 # Needed for GitVersion to function correctly
2322
24- # Setup .NET Core SDK
25- - name : Setup .NET Core
26- uses : actions/setup-dotnet@v1
27- with :
28- dotnet-version : ${{ env.DOTNET_VERSION }}
29- source-url : ${{ env.ARTIFACTS_FEED_URL }}
30- env :
31- NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY_NEOLUTION }}
32-
3323 - name : Install GitVersion
3424 uses : gittools/actions/gitversion/setup@v0.9.7
3525 with :
3626 versionSpec : ' 5.x'
3727
38- - name : Determine Version
28+ - name : Determine version number with GitVersion
3929 uses : gittools/actions/gitversion/execute@v0.9.7
4030
41- - name : Replace version number
31+ - name : Replace version number in nuspec files
4232 run : ' sed -i -e "s/{{NuGetVersion}}/$GITVERSION_NUGETVERSION/g" *.nuspec **/*.targets'
4333
4434 - name : Setup NuGet.exe for use with actions
4535 uses : NuGet/setup-nuget@v1.0.5
4636
47- - name : Pack main package
37+ - name : Create main package
4838 run : nuget pack Neolution.CodeAnalysis.nuspec
4939
50- - name : Pack TestsRuleset package
40+ - name : Create TestsRuleset package
5141 run : nuget pack Neolution.CodeAnalysis.TestsRuleset.nuspec
5242
53- - name : Push all packages
43+ - name : Push all packages to Nuget.org
5444 run : dotnet nuget push --skip-duplicate -k $NUGET_AUTH_TOKEN **/*.nupkg
5545 env :
5646 NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY_NEOLUTION }}
0 commit comments