Skip to content

Commit

Permalink
Update Pack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Jul 3, 2023
1 parent 74c1e13 commit 4e9edb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions build/Program.cs
Expand Up @@ -425,9 +425,7 @@ public override void Run(BuildContext context)
Configuration = context.BuildConfiguration,
OutputDirectory = context.ArtifactsDirectory.FullPath,
ArgumentCustomization = args => args.Append("--include-symbols").Append("-p:SymbolPackageFormat=snupkg"),
MSBuildSettings = context.MsBuildSettingsPack,
NoBuild = true,
NoRestore = true
MSBuildSettings = context.MsBuildSettingsPack
};

foreach (var project in context.AllPackableSrcProjects)
Expand All @@ -436,8 +434,7 @@ public override void Run(BuildContext context)
var settingsTemplate = new DotNetPackSettings
{
Configuration = context.BuildConfiguration,
OutputDirectory = context.ArtifactsDirectory.FullPath,
MSBuildSettings = context.MsBuildSettingsPack
OutputDirectory = context.ArtifactsDirectory.FullPath
};
context.DotNetPack(context.TemplatesTestsProjectFile.FullPath, settingsTemplate);
}
Expand Down
2 changes: 1 addition & 1 deletion build/common.props
Expand Up @@ -41,7 +41,7 @@
<VersionPrefix Condition=" '$(APPVEYOR_BUILD_NUMBER)' != '' ">$(VersionPrefix).$(APPVEYOR_BUILD_NUMBER)</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition=" '$(VersionSuffix)' == '' ">
<PropertyGroup Condition=" '$(VersionSuffix)' == '' AND '$(APPVEYOR_BUILD_NUMBER)' == '' ">
<VersionSuffix>develop</VersionSuffix>
<VersionSuffix Condition=" '$(APPVEYOR_BUILD_NUMBER)' == '' AND '$(BDN_CI_BUILD)' != '' ">ci</VersionSuffix>
</PropertyGroup>
Expand Down

0 comments on commit 4e9edb0

Please sign in to comment.