Skip to content

Commit 641323f

Browse files
committed
CI: show build errors in step output instead of artifact
https://claude.ai/code/session_01GwHuC47PH81Zw3EUfgkrYN
1 parent cd47a09 commit 641323f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ jobs:
2727
- name: Build
2828
run: dotnet build src/HealthNerd.Wasm/HealthNerd.Wasm.csproj -c Release --no-restore -v normal 2>&1 | tee /tmp/build-output.txt; exit ${PIPESTATUS[0]}
2929

30-
- name: Upload build log
30+
- name: Show build errors
3131
if: failure()
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: build-log
35-
path: /tmp/build-output.txt
32+
run: grep -E "error CS|Error\(s\)|error :" /tmp/build-output.txt || cat /tmp/build-output.txt
3633

3734
- name: Publish (dry-run to verify WASM output)
3835
run: dotnet publish src/HealthNerd.Wasm/HealthNerd.Wasm.csproj -c Release --no-restore -o ./publish

0 commit comments

Comments
 (0)