From 9ee386c843925d8c72f7403da4467b2f39f5e165 Mon Sep 17 00:00:00 2001
From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com>
Date: Mon, 25 Sep 2023 13:22:20 +0300
Subject: [PATCH] Move `ContinuousIntegrationBuild` to workflow file for
consistency
---
.github/workflows/main.yml | 12 ++++++++++--
Directory.Build.props | 3 +--
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 76deddc..5445d96 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -77,7 +77,10 @@ jobs:
run: dotnet restore
- name: Run build
- run: dotnet build --no-restore --configuration Release
+ run: >
+ dotnet build
+ --no-restore
+ --configuration Release
- name: Run tests
run: >
@@ -108,7 +111,11 @@ jobs:
run: dotnet restore
- name: Run build
- run: dotnet build --no-restore --configuration Release
+ run: >
+ dotnet build
+ --no-restore
+ --configuration Release
+ -p:ContinuousIntegrationBuild=true
# When triggered by `push` or `pull_request` events, generate a prerelease version
# for the package, so as to clearly indicate that it's not a stable version release.
@@ -127,6 +134,7 @@ jobs:
--no-restore
--no-build
--configuration Release
+ -p:ContinuousIntegrationBuild=true
${{ steps.prerelease-version.outputs.suffix && format('--version-suffix {0}', steps.prerelease-version.outputs.suffix) || '' }}
- name: Upload artifacts
diff --git a/Directory.Build.props b/Directory.Build.props
index 2e64950..9bf8342 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,9 +4,8 @@
net8.0
false
- true
-
+
latest
enable