Skip to content

Commit d89d3e6

Browse files
committed
Merge remote-tracking branch 'origin/Renovation'
2 parents 9cf3c1a + 0ed7ee7 commit d89d3e6

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

build.cake

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,26 @@ Task("PushPackages")
9999
.Does(() =>
100100
{
101101
var package = $"{artifactsDir}/Assent.{nugetVersion}.nupkg";
102+
var symbols = $"{artifactsDir}/Assent.{nugetVersion}.snupkg";
102103
var localPackagesDir = "../LocalPackages";
103104

104-
if(DirectoryExists(localPackagesDir))
105+
if (DirectoryExists(localPackagesDir))
106+
{
105107
CopyFileToDirectory(package, localPackagesDir);
108+
CopyFileToDirectory(symbols, localPackagesDir);
109+
}
106110

107-
if(isContinuousIntegrationBuild && gitVersionInfo.PreReleaseTag == "")
111+
if (isContinuousIntegrationBuild && gitVersionInfo.PreReleaseTag == "")
108112
{
109-
NuGetPush(package, new NuGetPushSettings {
113+
NuGetPush(package, new NuGetPushSettings
114+
{
115+
Source = "https://www.nuget.org/api/v2/package",
116+
ApiKey = EnvironmentVariable("NuGetApiKey"),
117+
Timeout = TimeSpan.FromMinutes(20)
118+
});
119+
120+
NuGetPush(symbols, new NuGetPushSettings
121+
{
110122
Source = "https://www.nuget.org/api/v2/package",
111123
ApiKey = EnvironmentVariable("NuGetApiKey"),
112124
Timeout = TimeSpan.FromMinutes(20)

src/Assent/Assent.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,13 @@
1414
<PackageProjectUrl>https://github.com/droyad/Assent</PackageProjectUrl>
1515
<RepositoryUrl>https://github.com/droyad/Assent</RepositoryUrl>
1616
<PackageLicense>MIT</PackageLicense>
17+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
18+
<IncludeSymbols>true</IncludeSymbols>
19+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1720
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
24+
</ItemGroup>
25+
1826
</Project>

0 commit comments

Comments
 (0)