Skip to content

Commit d199ba5

Browse files
committed
correct release build
1 parent e358062 commit d199ba5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
run: dotnet test
3737

3838
- 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 }}
4040
- 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 }}
4242
- 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+
4545
- name: Zip artifacts
4646
uses: tomchavakis/action-zip@v0.1.1
4747
with:
@@ -70,4 +70,5 @@ jobs:
7070
asset_content_type: application/zip
7171

7272
- 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

src/NuGetUtility/NuGetUtility.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
<PackageReference Include="NuGet.Commands" Version="6.4.0" />
3131
<PackageReference Include="NuGet.Packaging" Version="6.4.0" />
3232
</ItemGroup>
33+
<ItemGroup>
34+
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
35+
</ItemGroup>
3336

3437
</Project>

0 commit comments

Comments
 (0)