Skip to content

Commit 782de32

Browse files
committed
Unify workflow definition a little with others
1 parent afb2b6a commit 782de32

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,29 +147,37 @@ jobs:
147147
-p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
148148
-p:PublishDir="${{ env.PUBLISH_PATH }}/Release/net10.0"
149149
150-
- name: Upload build for netcoreapp3.1
150+
- name: Upload build artifacts netcore3.1
151151
uses: actions/upload-artifact@v4
152+
if: ${{ matrix.publish }}
152153
with:
153154
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-${{ matrix.configuration }}-netcoreapp3.1
154155
path: ${{ env.PUBLISH_PATH }}/${{ matrix.configuration }}/netcoreapp3.1
156+
if-no-files-found: error
155157

156-
- name: Upload build for net6.0
158+
- name: Upload build artifacts 6.0
157159
uses: actions/upload-artifact@v4
160+
if: ${{ matrix.publish }}
158161
with:
159162
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-${{ matrix.configuration }}-net6.0
160163
path: ${{ env.PUBLISH_PATH }}/${{ matrix.configuration }}/net6.0
164+
if-no-files-found: error
161165

162-
- name: Upload build for net8.0
166+
- name: Upload build artifacts 8.0
163167
uses: actions/upload-artifact@v4
168+
if: ${{ matrix.publish }}
164169
with:
165170
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-${{ matrix.configuration }}-net8.0
166171
path: ${{ env.PUBLISH_PATH }}/${{ matrix.configuration }}/net8.0
172+
if-no-files-found: error
167173

168-
- name: Upload build for net10.0
174+
- name: Upload build artifacts 10.0
169175
uses: actions/upload-artifact@v4
176+
if: ${{ matrix.publish }}
170177
with:
171178
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-${{ matrix.configuration }}-net10.0
172179
path: ${{ env.PUBLISH_PATH }}/${{ matrix.configuration }}/net10.0
180+
if-no-files-found: error
173181

174182
- name: Test
175183
if: ${{ !matrix.coverage }}
@@ -194,6 +202,7 @@ jobs:
194202
with:
195203
name: test-results
196204
path: TestResults
205+
if-no-files-found: error
197206

198207
- name: Test Report
199208
uses: dorny/test-reporter@v2
@@ -202,6 +211,7 @@ jobs:
202211
name: NUnit testing ${{ matrix.configuration }} build on ${{ matrix.os }}
203212
path: "**/TestResults/*.trx,*.trx"
204213
reporter: dotnet-trx
214+
if-no-files-found: error
205215

206216
validate-markdown:
207217
runs-on: ubuntu-latest
@@ -232,6 +242,7 @@ jobs:
232242

233243
steps:
234244
- uses: actions/checkout@v4
245+
235246
- name: Download test results
236247
uses: actions/download-artifact@v4
237248
with:

0 commit comments

Comments
 (0)