File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ jobs:
36
36
run : dotnet test
37
37
38
38
- name : Publish the application binaries (.net6)
39
- run : dotnet publish -c Release -o ./artifacts/net6 -f net6.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
39
+ run : dotnet publish ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-restore -o ./artifacts/net6 -f net6.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
40
40
- name : Publish the application binaries (.net7)
41
- run : dotnet publish -c Release -o ./artifacts/net7 -f net7.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
41
+ run : dotnet publish ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-restore -o ./artifacts/net7 -f net7.0 -p:Version=${{ steps.version.outputs.full_without_prefix }}
42
42
- name : Create nuget package
43
- run : dotnet pack -c Release -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
44
-
43
+ run : dotnet pack ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-build -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
44
+
45
45
- name : Zip artifacts
46
46
uses : tomchavakis/action-zip@v0.1.1
47
47
with :
70
70
asset_content_type : application/zip
71
71
72
72
- name : publish nuget package to nuget.org
73
- run : dotnet nuget push ./artifact/**/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_KEY}}
73
+ id : publish_nuget
74
+ run : dotnet nuget push ./artifacts/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.NUGET_KEY}} --skip-duplicate
Original file line number Diff line number Diff line change 30
30
<PackageReference Include =" NuGet.Commands" Version =" 6.4.0" />
31
31
<PackageReference Include =" NuGet.Packaging" Version =" 6.4.0" />
32
32
</ItemGroup >
33
+ <ItemGroup >
34
+ <None Include =" ..\..\README.md" Pack =" true" PackagePath =" \" />
35
+ </ItemGroup >
33
36
34
37
</Project >
You can’t perform that action at this time.
0 commit comments