Skip to content

Commit 94a0bff

Browse files
authored
添加 SkipDuplicates 选项,移除 sunpkg 的手动上传 (#2158)
1 parent 909c1fa commit 94a0bff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unity/nuget/build/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ public override void Run(BuildContext context)
206206
}
207207

208208
var packageFiles = Directory.EnumerateFiles(packageOutputDirectory.FullPath)
209-
.Where(file => file.EndsWith(".nupkg", StringComparison.OrdinalIgnoreCase)
210-
|| file.EndsWith(".snupkg", StringComparison.OrdinalIgnoreCase));
209+
.Where(file => file.EndsWith(".nupkg", StringComparison.OrdinalIgnoreCase));
211210

212211

213212
foreach (var nugetPackageFile in packageFiles)
@@ -219,7 +218,8 @@ public override void Run(BuildContext context)
219218
new Cake.Common.Tools.DotNet.NuGet.Push.DotNetNuGetPushSettings()
220219
{
221220
Source = context.Source,
222-
ApiKey = context.ApiKey
221+
ApiKey = context.ApiKey,
222+
SkipDuplicate = true
223223
});
224224
}
225225
}

0 commit comments

Comments
 (0)