diff --git a/eng/Publishing.props b/eng/Publishing.props
index 7edbb21d21f1..47adc87f6bbc 100644
--- a/eng/Publishing.props
+++ b/eng/Publishing.props
@@ -32,7 +32,7 @@
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.rpm" UploadPathSegment="Runtime" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.tar.gz" UploadPathSegment="Runtime" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime"
- Condition=" '$(PublishInstallerBaseVersion)' == 'true' " />
+ Condition=" '$(PublishInstallerBaseVersion)' == 'true' or '$(DotNetBuildRepo)' == 'true'" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.wixlib" UploadPathSegment="Runtime" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.zip" UploadPathSegment="Runtime" />
@@ -64,7 +64,7 @@
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
to be published. Use ArcadeBuildFromSource as DotNetBuildFromSource is only set in the internal source build,
and Build.proj is invoked from the wrapper build. -->
-
+
NonShipping=true
diff --git a/eng/build.sh b/eng/build.sh
index 51a2cd6ecd31..cfc42f1ceb7f 100755
--- a/eng/build.sh
+++ b/eng/build.sh
@@ -18,6 +18,7 @@ verbosity='minimal'
run_restore=''
run_build=true
run_pack=false
+run_publish=false
run_tests=false
build_all=false
build_deps=true
@@ -62,6 +63,7 @@ Options:
--[no-]build Compile projects. (Implies --no-restore)
--[no-]pack Produce packages.
--[no-]test Run tests.
+ --[no-]publish Run publish.
--projects A list of projects to build. (Must be an absolute path.)
Globbing patterns are supported, such as \"$(pwd)/**/*.csproj\".
@@ -152,6 +154,12 @@ while [[ $# -gt 0 ]]; do
-no-pack|-nopack)
run_pack=false
;;
+ -publish)
+ run_publish=true
+ ;;
+ -no-publish|-nopublish)
+ run_publish=false
+ ;;
-test|-t)
run_tests=true
;;
@@ -286,6 +294,7 @@ if [ "$run_build" = false ]; then
msbuild_args[${#msbuild_args[*]}]="-p:NoBuild=true"
fi
msbuild_args[${#msbuild_args[*]}]="-p:Pack=$run_pack"
+msbuild_args[${#msbuild_args[*]}]="-p:Publish=$run_publish"
msbuild_args[${#msbuild_args[*]}]="-p:Test=$run_tests"
msbuild_args[${#msbuild_args[*]}]="-p:TargetArchitecture=$target_arch"