File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,13 @@ $apiKey = $args[0]
5
5
Write-Output $apiKey ;
6
6
7
7
# 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
12
10
13
11
# Publish all packages
14
12
foreach ($project in $projects ) {
15
13
$projectName = $project.Substring ($project.LastIndexOf (" /" ) + 1 )
16
- $packagePath = Join-Path " ./package" ($projectName + " ." + $version + " .nupkg" )
14
+ $packagePath = Join-Path " ./package" ($projectName + " ." + $version.Trim () + " .nupkg" )
17
15
Write-Output $packagePath
18
16
dotnet nuget push $packagePath - s https:// api.nuget.org/ v3/ index.json -- api- key " $apiKey "
19
17
}
Original file line number Diff line number Diff line change 32
32
<PropertyGroup Condition =" '$(GITHUB_ACTIONS)' == 'true'" >
33
33
<ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
34
34
</PropertyGroup >
35
- <PropertyGroup Condition = " '$(Version)' == '' " >
36
- <Version >0.1.5 </Version >
35
+ <PropertyGroup >
36
+ <Version >0.1.4 </Version >
37
37
</PropertyGroup >
38
38
<!-- <ItemGroup>
39
39
<None Include="$(SolutionDir)wechaty.png" Pack="true" PackagePath=""/>
You can’t perform that action at this time.
0 commit comments