Skip to content

Commit 31523ad

Browse files
Jesnechofool
authored andcommitted
update nuget package as 0.1.4
1 parent b7ba0c3 commit 31523ad

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

nupkg/push_packages.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ $apiKey = $args[0]
55
Write-Output $apiKey;
66

77
# Get the version
8-
[xml]$commonPropsXml = Get-Content (Join-Path $rootFolder "src/common.props")
9-
$version = $commonPropsXml.Project.PropertyGroup.Version
10-
11-
Write-Output $projects
8+
[xml]$commonPropsXml = Get-Content (Join-Path $rootFolder "src/Directory.Build.props")
9+
[string]$version = $commonPropsXml.Project.PropertyGroup.Version
1210

1311
# Publish all packages
1412
foreach($project in $projects) {
1513
$projectName = $project.Substring($project.LastIndexOf("/") + 1)
16-
$packagePath= Join-Path "./package" ($projectName + "." + $version + ".nupkg")
14+
$packagePath= Join-Path "./package" ($projectName + "." + $version.Trim() + ".nupkg")
1715
Write-Output $packagePath
1816
dotnet nuget push $packagePath -s https://api.nuget.org/v3/index.json --api-key "$apiKey"
1917
}

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
3333
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
3434
</PropertyGroup>
35-
<PropertyGroup Condition="'$(Version)' == ''">
36-
<Version>0.1.5</Version>
35+
<PropertyGroup>
36+
<Version>0.1.4</Version>
3737
</PropertyGroup>
3838
<!--<ItemGroup>
3939
<None Include="$(SolutionDir)wechaty.png" Pack="true" PackagePath=""/>

0 commit comments

Comments
 (0)