Skip to content

Commit 4fd028e

Browse files
committed
Add mandatory user parameter for NuGet OIDC login step
1 parent 9a4bc31 commit 4fd028e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939
- name: Pack NuGet Package
4040
run: dotnet pack src/Refit.Composite/Refit.Composite.csproj --configuration Release /p:PackageVersion=${{ env.VERSION }} --no-build --output ./dist
4141

42-
- name: NuGet login (OIDC)
42+
- name: NuGet login (OIDC → temp API key)
4343
uses: NuGet/login@v1
44-
id: nuget_login
44+
id: login
45+
with:
46+
user: ${{ github.repository_owner }}
4547

4648
- name: Push to NuGet.org
47-
run: dotnet nuget push ./dist/*.nupkg --api-key ${{ steps.nuget_login.outputs.NUGET_API_KEY }} --source https://nuget.org --skip-duplicate
49+
run: dotnet nuget push ./dist/*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
4850

4951
- name: Create GitHub Release
5052
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)