Skip to content

Commit 2b8bb12

Browse files
Enable publishing in VMR (#54422)
* Enable publishing in VMR * Remove unnecesary version file publishing infra
1 parent 39e429f commit 2b8bb12

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

eng/Publishing.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.rpm" UploadPathSegment="Runtime" />
3333
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.tar.gz" UploadPathSegment="Runtime" />
3434
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime"
35-
Condition=" '$(PublishInstallerBaseVersion)' == 'true' " />
35+
Condition=" '$(PublishInstallerBaseVersion)' == 'true' or '$(DotNetBuildRepo)' == 'true'" />
3636
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.wixlib" UploadPathSegment="Runtime" />
3737
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.zip" UploadPathSegment="Runtime" />
3838
<!-- Remove wixpacks if not doing post-build signing, since they are not needed -->
@@ -64,7 +64,7 @@
6464
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
6565
to be published. Use ArcadeBuildFromSource as DotNetBuildFromSource is only set in the internal source build,
6666
and Build.proj is invoked from the wrapper build. -->
67-
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(ArcadeBuildFromSource)' != 'true'" />
67+
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(DotNetBuildRepo)' != 'true'" />
6868

6969
<ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)">
7070
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>

eng/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ verbosity='minimal'
1818
run_restore=''
1919
run_build=true
2020
run_pack=false
21+
run_publish=false
2122
run_tests=false
2223
build_all=false
2324
build_deps=true
@@ -62,6 +63,7 @@ Options:
6263
--[no-]build Compile projects. (Implies --no-restore)
6364
--[no-]pack Produce packages.
6465
--[no-]test Run tests.
66+
--[no-]publish Run publish.
6567
6668
--projects A list of projects to build. (Must be an absolute path.)
6769
Globbing patterns are supported, such as \"$(pwd)/**/*.csproj\".
@@ -152,6 +154,12 @@ while [[ $# -gt 0 ]]; do
152154
-no-pack|-nopack)
153155
run_pack=false
154156
;;
157+
-publish)
158+
run_publish=true
159+
;;
160+
-no-publish|-nopublish)
161+
run_publish=false
162+
;;
155163
-test|-t)
156164
run_tests=true
157165
;;
@@ -286,6 +294,7 @@ if [ "$run_build" = false ]; then
286294
msbuild_args[${#msbuild_args[*]}]="-p:NoBuild=true"
287295
fi
288296
msbuild_args[${#msbuild_args[*]}]="-p:Pack=$run_pack"
297+
msbuild_args[${#msbuild_args[*]}]="-p:Publish=$run_publish"
289298
msbuild_args[${#msbuild_args[*]}]="-p:Test=$run_tests"
290299

291300
msbuild_args[${#msbuild_args[*]}]="-p:TargetArchitecture=$target_arch"

0 commit comments

Comments
 (0)