Skip to content

Commit

Permalink
Validate NuGet package before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal authored Dec 11, 2023
1 parent 0fa62ec commit 7ef85fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- name: Pack
run: dotnet pack -c Release src/NuPU/NuPU.csproj /p:Version=1.0.${{ github.run_number }}

- name: Install dotnet-validate
run: dotnet tool install --global dotnet-validate --version 0.0.1-preview.304

- name: Validate Elmah.Io.AspNetCore
run: dotnet-validate package local src/NuPU/nupkg/NuPU.1.0.${{ github.run_number }}.nupkg

- name: Push to nuget.org
run: dotnet nuget push src/NuPU/nupkg/NuPU.1.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
if: ${{ github.event_name == 'push' }}
Expand All @@ -40,4 +46,4 @@ jobs:
with:
tag_name: 1.0.${{ github.run_number }}
release_name: Release 1.0.${{ github.run_number }}
draft: false
draft: false

0 comments on commit 7ef85fc

Please sign in to comment.