Skip to content

Commit 56b5c01

Browse files
committed
(GH-2120) pushing nuget to GitHub Packages, add repositoryUrl
1 parent 97487a2 commit 56b5c01

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build/publish.cake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,15 @@ Task("Publish-NuGet-Internal")
132132

133133
Information("Adding NuGet source with user/pass...");
134134
NuGetAddSource("GitHub", source, nugetSourceSettings);
135-
Information("Adding NuGet source with user/pass after");
136135

137136
foreach(var package in parameters.Packages.Nuget)
138137
{
139138
if (FileExists(package.PackagePath))
140139
{
141-
// NuGetPush(package.PackagePath, new NuGetPushSettings
142-
// {
143-
// Source = source
144-
// });
140+
NuGetPush(package.PackagePath, new NuGetPushSettings
141+
{
142+
Source = source
143+
});
145144
}
146145
}
147146
}

nuspec/GitVersion.CommandLine.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<license type="expression">MIT</license>
1010
<copyright>Copyright GitTools 2020.</copyright>
1111
<projectUrl>https://github.com/GitTools/GitVersion</projectUrl>
12+
<repository type="git" url="https://github.com/GitTools/GitVersion" />
1213
<icon>package_icon.png</icon>
1314
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1415
<description>Derives SemVer information from a repository following GitFlow or GitHubFlow.</description>

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<PackageIcon>package_icon.png</PackageIcon>
1212
<PackageReleaseNotes>https://github.com/GitTools/GitVersion/releases</PackageReleaseNotes>
13-
<RepositoryUrl>https://github.com/GitTools/GitVersion.git</RepositoryUrl>
13+
<RepositoryUrl>https://github.com/GitTools/GitVersion</RepositoryUrl>
1414
<RepositoryType>git</RepositoryType>
1515
<PackageReleaseNotes>https://github.com/GitTools/GitVersion/releases</PackageReleaseNotes>
1616
<Company>$(Authors)</Company>

0 commit comments

Comments
 (0)