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
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ jobs:
#
# Create this policy on https://www.nuget.org/account/trustedpublishing before the next
# stable release. Package owner below is the account that owns the packages.
# NuGet/login uses secrets.NUGET_USER. The verified policy creator username
# is kzu. Package owner remains Devlooped. nuget.org rejects token exchange
# for an organization username, so this is kzu and not Devlooped.
# NuGet/login user is vars.NUGET_USER, or secrets.NUGET_USER when the
# variable is empty. The verified policy creator username is kzu. Package
# owner remains Devlooped. nuget.org rejects token exchange for an
# organization username, so this is kzu and not Devlooped.
# Package owner: Devlooped
# Repository owner: devlooped
# Repository: ndx
Expand Down Expand Up @@ -296,7 +297,7 @@ jobs:
uses: NuGet/login@v1
with:
# Verified policy creator username kzu. Not an email and not Devlooped.
user: ${{ secrets.NUGET_USER }}
user: ${{ vars.NUGET_USER || secrets.NUGET_USER }}

- name: 🚀 nuget
shell: pwsh
Expand Down
3 changes: 2 additions & 1 deletion src/Tests/PublishWorkflowTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public void Release_workflow_builds_the_rid_matrix_and_attaches_archives()
Assert.Contains("dotnet nuget push", yml);
Assert.Contains("https://api.nuget.org/v3/index.json", yml);
Assert.Contains("uses: NuGet/login@v1", yml);
Assert.Contains("user: ${{ secrets.NUGET_USER }}", yml);
Assert.Contains("user: ${{ vars.NUGET_USER || secrets.NUGET_USER }}", yml);
Assert.DoesNotContain("user: ${{ secrets.NUGET_USER }}", yml);
Assert.Contains("The verified policy creator username", yml);
Assert.Contains("is kzu", yml);
Assert.DoesNotContain("user: Devlooped", yml);
Expand Down