Skip to content

Commit a7286e6

Browse files
committed
Update build.yml
1 parent 2e9cb54 commit a7286e6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ jobs:
2323
# Nerdbank.GitVersioning appends Git*Version lines to $GITHUB_ENV once per project. With parallel
2424
# MSBuild (-m) the worker processes race on that file and tear lines, which the runner then rejects
2525
# with "Invalid format '1.0.0'" at the end of the step. Nothing here consumes those variables.
26+
#
27+
# PublicRelease applies to every step, not just Build: the Test and AOT publish steps rebuild the
28+
# src projects, and GeneratePackageOnBuild would otherwise emit a second, non-public
29+
# (1.x.y-g<commit>) .nupkg next to the real one, which the push glob then publishes too.
2630
env:
2731
NBGV_SetCloudBuildVersionVars: false
32+
PublicRelease: true
2833

2934
permissions:
3035
id-token: write # required for NuGet trusted publishing (OIDC)
@@ -45,7 +50,7 @@ jobs:
4550
workloads: maui-ios, maui-android, maui-maccatalyst, macos, wasm-tools
4651

4752
- name: Build
48-
run: dotnet build build.slnf /restore -m -property:Configuration=Release -property:PublicRelease=true
53+
run: dotnet build build.slnf /restore -m -property:Configuration=Release
4954

5055
# No --no-build: build.slnf deliberately excludes the test project, so the previous step never
5156
# produced its output. xunit v3 runs on Microsoft.Testing.Platform, so trx comes from

0 commit comments

Comments
 (0)