Skip to content

Commit

Permalink
Fix build on missing version suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman committed Sep 23, 2023
1 parent 7902e3d commit 05a71e1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ jobs:
- name: Build
shell: pwsh
run: |
dotnet build --no-restore --configuration Release --version-suffix=$env:PACKAGE_VERSION_SUFFIX
if ($env:PACKAGE_VERSION_SUFFIX) {
dotnet build --no-restore --configuration Release --version-suffix=$env:PACKAGE_VERSION_SUFFIX
}
else {
dotnet build --no-restore --configuration Release
}
- name: Test
run: |
dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true" -- RunConfiguration.CollectSourceInformation=true DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.DeterministicReport=true
Expand All @@ -134,7 +139,12 @@ jobs:
- name: Generate packages
shell: pwsh
run: |
dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages --version-suffix=$env:PACKAGE_VERSION_SUFFIX
if ($env:PACKAGE_VERSION_SUFFIX) {
dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages --version-suffix=$env:PACKAGE_VERSION_SUFFIX
}
else {
dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages
}
- name: Upload packages to artifacts
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 05a71e1

Please sign in to comment.