From 96ae14041402bf8fde1094529368a3925f04751f Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 13 Jul 2022 16:01:46 +0200 Subject: [PATCH] fix NuGet token lookup --- .drone.yml | 4 ++-- README.md | 4 ++-- src/Deploy/Invoke-Publish.ps1 | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index fe09e7f..07ca93d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -134,8 +134,8 @@ steps: image: mcr.microsoft.com/dotnet/sdk:6.0-focal #failure: ignore environment: - NexusToken: - from_secret: NexusToken + NuGetToken: + from_secret: PSGallery commands: - | pwsh -NonInteractive -c "& { diff --git a/README.md b/README.md index d30f772..c0aa816 100644 --- a/README.md +++ b/README.md @@ -143,8 +143,8 @@ steps: image: mcr.microsoft.com/dotnet/sdk:6.0-focal #failure: ignore environment: - NexusToken: - from_secret: NexusToken + NuGetToken: + from_secret: PSGallery commands: - | pwsh -NonInteractive -c "& { diff --git a/src/Deploy/Invoke-Publish.ps1 b/src/Deploy/Invoke-Publish.ps1 index f57c3c8..958db5d 100644 --- a/src/Deploy/Invoke-Publish.ps1 +++ b/src/Deploy/Invoke-Publish.ps1 @@ -35,9 +35,9 @@ function Invoke-Publish { Expand-Archive @ExpandParams $PublishParams = @{ - Repository = 'Nexus' + Repository = 'PSGallery' Path = $Repo.Bin.ExpandPath - NuGetApiKey = $Env:NexusToken + NuGetApiKey = $Env:NuGetToken Verbose = $VerbosePreference ErrorAction = 'Stop' }