From 1ac5d9c165843d4b7aae70d7657b6e9dc98cb716 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Sat, 23 Dec 2023 19:29:51 +0000 Subject: [PATCH] Update build to gate releases --- .github/workflows/BuildOnly.yml | 5 ----- .github/workflows/dotnet.yml | 7 ++----- Directory.Build.props | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/BuildOnly.yml b/.github/workflows/BuildOnly.yml index 4a6b003..cfba58d 100644 --- a/.github/workflows/BuildOnly.yml +++ b/.github/workflows/BuildOnly.yml @@ -25,11 +25,6 @@ jobs: 7.0.x 8.0.x - - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.1.3 - with: - vs-prerelease: true - - name: NBGV id: nbgv uses: dotnet/nbgv@master diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3183b9a..797dde4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,8 @@ jobs: build-and-release: runs-on: windows-2022 + environment: + name: release outputs: nbgv: ${{ steps.nbgv.outputs.SemVer2 }} steps: @@ -25,11 +27,6 @@ jobs: 7.0.x 8.0.x - - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.1.3 - with: - vs-prerelease: true - - name: NBGV id: nbgv uses: dotnet/nbgv@master diff --git a/Directory.Build.props b/Directory.Build.props index d4c2266..acb2e74 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -54,8 +54,8 @@ - - + +