Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

Commit a3de634

Browse files
committed
Tweaking build script
1 parent ae23214 commit a3de634

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 1.0.{build}
22
image: Visual Studio 2017
33
environment:
4-
NUGET_ORG_API_KEY:
4+
NuGetApiKey:
55
secure: hSqSXXsRHbyw+XicOQPC17vUR5v5/773a35XIZQDghcHCgTdvXQ8R1seKH+TxoDq
66
dotnet_csproj:
77
patch: true

build.cake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,14 @@ Task("__Pack")
104104
});
105105

106106
var isTag = bool.Parse(EnvironmentVariable("APPVEYOR_REPO_TAG"));
107-
var nugetApiKey = EnvironmentVariable("NUGET_ORG_API_KEY");
108107
Task("__Publish")
109108
.WithCriteria(isTag)
110-
.WithCriteria(!string.IsNullOrEmpty(nugetApiKey))
111109
.WithCriteria(BuildSystem.IsRunningOnAppVeyor)
112110
.Does(() =>
113111
{
114112
NuGetPush($"{artifactsDir}/{projectName}.{nugetVersion}.nupkg", new NuGetPushSettings {
115-
ApiKey = nugetApiKey
113+
Source = "https://www.nuget.org/api/v2/package",
114+
ApiKey = EnvironmentVariable("NuGetApiKey")
116115
});
117116
});
118117

0 commit comments

Comments
 (0)