Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
permissions:
contents: write
packages: write
id-token: write
concurrency:
group: ${{ github.repository }}
cancel-in-progress: false
Expand All @@ -41,6 +42,13 @@ jobs:
throw "Tests Failed";
};

- name: NuGet Login (Trusted Publishing)
if: github.ref == 'refs/heads/master'
id: nuget-login
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
with:
user: ${{ secrets.NUGET_USER }}

- name: Pack and Push (NuGet.org)
if: github.ref == 'refs/heads/master'
shell: pwsh
Expand All @@ -54,7 +62,7 @@ jobs:

dotnet nuget push "nupkgs/*.nupkg" `
--source https://api.nuget.org/v3/index.json `
--api-key ${{ secrets.NUGET_APIKEY }} `
--api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} `
--skip-duplicate;

if ($LastExitCode -ne 0)
Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<Description>This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.</Description>
<PackageReleaseNotes>
- Fixed Entity events not being declared as DIRECT exchange, ignoring the routing key
- Changed to Trusted publishing for NuGet
</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>master</RepositoryBranch>
Expand Down
Loading