File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,12 @@ jobs:
124
124
- name : Build
125
125
shell : pwsh
126
126
run : |
127
- dotnet build --no-restore --configuration Release --version-suffix=$env:PACKAGE_VERSION_SUFFIX
127
+ if ($env:PACKAGE_VERSION_SUFFIX) {
128
+ dotnet build --no-restore --configuration Release --version-suffix=$env:PACKAGE_VERSION_SUFFIX
129
+ }
130
+ else {
131
+ dotnet build --no-restore --configuration Release
132
+ }
128
133
- name : Test
129
134
run : |
130
135
dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --logger "GitHubActions;summary.includeSkippedTests=true" -- RunConfiguration.CollectSourceInformation=true DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.DeterministicReport=true
@@ -134,7 +139,12 @@ jobs:
134
139
- name : Generate packages
135
140
shell : pwsh
136
141
run : |
137
- dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages --version-suffix=$env:PACKAGE_VERSION_SUFFIX
142
+ if ($env:PACKAGE_VERSION_SUFFIX) {
143
+ dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages --version-suffix=$env:PACKAGE_VERSION_SUFFIX
144
+ }
145
+ else {
146
+ dotnet pack --no-build --configuration Release --output $env:GITHUB_WORKSPACE/artifacts/packages
147
+ }
138
148
- name : Upload packages to artifacts
139
149
if : matrix.os == 'ubuntu-latest'
140
150
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments