Use trusted publishing (#121)

This commit is contained in:
Patrick Stevens
2025-10-03 10:11:50 +01:00
committed by GitHub
parent 2fde797401
commit 3d76737767
4 changed files with 8 additions and 3 deletions

View File

@@ -242,11 +242,16 @@ jobs:
- name: Identify .NET
id: identify-dotnet
run: nix develop --command bash -c 'echo dotnet=$(which dotnet) >> $GITHUB_OUTPUT'
- name: Obtain NuGet key
uses: NuGet/login@c4e75239670fdbea167b518c23523c3eaba3692d
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: Publish NuGet package
uses: G-Research/common-actions/publish-nuget@2b7dc49cb14f3344fbe6019c14a31165e258c059
with:
package-name: WoofWare.PrattParser
nuget-key: ${{ secrets.NUGET_API_KEY }}
nuget-key: ${{ steps.login.outputs.NUGET_API_KEY }}
nupkg-dir: packed/
dotnet: ${{ steps.identify-dotnet.outputs.dotnet }}