File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments