Skip to content

Commit f4bbd1f

Browse files
Enable publishing in VMR
1 parent 3e51552 commit f4bbd1f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

eng/Publishing.props

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
<!-- Remove wixpacks if not doing post-build signing, since they are not needed -->
3939
<_InstallersToPublish Remove="@(WixPacksToPublish)" Condition="'$(PostBuildSign)' != 'true'" />
4040
<_ChecksumsToPublish Include="$(ArtifactsDir)installers\**\*.sha512" />
41+
<!-- Version file, for VMR build -->
42+
<_VersionFileToPublish Include="$(ArtifactsDir)installers\**\aspnetcore_base_runtime.version" UploadPathSegment="Runtime" Condition="'$(DotNetBuildRepo)' == 'true'" />
4143
</ItemGroup>
4244

4345
<Target
@@ -64,14 +66,20 @@
6466
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
6567
to be published. Use ArcadeBuildFromSource as DotNetBuildFromSource is only set in the internal source build,
6668
and Build.proj is invoked from the wrapper build. -->
67-
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(ArcadeBuildFromSource)' != 'true'" />
69+
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true' and '$(DotNetBuildRepo)' != 'true'" />
6870

6971
<ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)">
7072
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
7173
<PublishFlatContainer>true</PublishFlatContainer>
7274
<RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
7375
</ItemsToPushToBlobFeed>
7476

77+
<ItemsToPushToBlobFeed Include="@(_VersionFileToPublish)">
78+
<ManifestArtifactData>NonShipping=true</ManifestArtifactData>
79+
<PublishFlatContainer>true</PublishFlatContainer>
80+
<RelativeBlobPath>$(_UploadPathRoot)/Runtime/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
81+
</ItemsToPushToBlobFeed>
82+
7583
<ItemsToPushToBlobFeed Include="@(_InstallersToPublish)" Condition="! $([System.String]::Copy('%(Filename)').ToLower().Contains('internal'))">
7684
<ManifestArtifactData>NonShipping=false</ManifestArtifactData>
7785
<PublishFlatContainer>true</PublishFlatContainer>

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)