@@ -19,32 +19,20 @@ jobs:
1919 with :
2020 dotnet-version : 5.0.x
2121
22- - name : Publish Net50
23- id : publish_nuget_net50
24- uses : rohith/publish-nuget@v2
25- with :
26- # Filepath of the project to be packaged, relative to root of repository
27- PROJECT_FILE_PATH : Basic.Reference.Assemblies.Net50/Basic.Reference.Assemblies.Net50.csproj
28- VERSION_STATIC : ${{ github.event.inputs.version }}
29- TAG_COMMIT : false
30- NUGET_KEY : ${{secrets.NUGET_API_KEY}}
22+ - name : Restore dependencies
23+ run : dotnet restore
3124
32- - name : Publish NetCoreApp31
33- id : publish_nuget_netcoreapp31
34- uses : rohith/publish-nuget@v2
35- with :
36- # Filepath of the project to be packaged, relative to root of repository
37- PROJECT_FILE_PATH : Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetCoreApp31.csproj
38- VERSION_STATIC : ${{ github.event.inputs.version }}
39- TAG_COMMIT : false
40- NUGET_KEY : ${{secrets.NUGET_API_KEY}}
25+ - name : Build
26+ run : dotnet build -c Release -p:PackageVersion="${{ github.events.inputs.version }}"
27+
28+ - name : Pack Net50
29+ run : dotnet pack --no-build -C Release Basic.Reference.Assemblies.Net50/Basic.Reference.Assemblies.Net50.csproj .
4130
42- - name : Publish NetStandard20
43- id : publish_nuget_netstandard20
44- uses : rohith/publish-nuget@v2
45- with :
46- # Filepath of the project to be packaged, relative to root of repository
47- PROJECT_FILE_PATH : Basic.Reference.Assemblies.NetStandard20/Basic.Reference.Assemblies.NetStandard20.csproj
48- VERSION_STATIC : ${{ github.event.inputs.version }}
49- TAG_COMMIT : false
50- NUGET_KEY : ${{secrets.NUGET_API_KEY}}
31+ - name : Pack NetCoreApp31
32+ run : dotnet pack --no-build -C Release Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetCoreApp31.csproj .
33+
34+ - name : Pack NetStandard20
35+ run : dotnet pack --no-build -C Release Basic.Reference.Assemblies.NetCoreApp31/Basic.Reference.Assemblies.NetStandard20.csproj .
36+
37+ - name : Publish NuPkg Files
38+ run : dotnet nuget push -k ${{ secrets.NUGET_API_KEY }} --no-symbols Basic.Reference.Assemblies.Net50.nupkg Basic.Reference.Assemblies.NetCoreApp31.nupkg Basic.Reference.Assemblies.NetStandard20.nupkg
0 commit comments