Skip to content

Commit cc3fb89

Browse files
authored
Update NuGet push to use secrets for API key
Replaced NuGet login step with direct use of secrets for API key.
1 parent aa1b834 commit cc3fb89

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,7 @@ jobs:
133133
$version = "${{ github.ref_name }}" -replace '^v', ''
134134
dotnet pack src/CDT.Core/CDT.Core.csproj --no-build -c Release -o "${{ github.workspace }}\artifacts" /p:Version=$version
135135
136-
- name: NuGet login
137-
uses: NuGet/login@v1
138-
id: login
139-
with:
140-
user: MichaCo
141-
142-
143136
- name: Push to NuGet.org
144137
run: |
145-
dotnet nuget push "${{ github.workspace }}\artifacts\*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
138+
dotnet nuget push "${{ github.workspace }}\artifacts\*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
146139
shell: pwsh

0 commit comments

Comments
 (0)