Skip to content

Commit

Permalink
Move ContinuousIntegrationBuild to workflow file for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Sep 25, 2023
1 parent 970d86b commit 9ee386c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<CurrentPreviewTfm>net8.0</CurrentPreviewTfm>
<!--<IncludePreview>true</IncludePreview>-->
<IncludePreview Condition="'$(IncludePreview)' == ''">false</IncludePreview>
<ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 9ee386c

Please sign in to comment.