From 833b85ef0d36a653d667c82b514afa80fb20d3b1 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 4 Jul 2026 19:08:42 +0900 Subject: [PATCH] ci: dump web publish log on failure --- .gitea/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9f59b95..f8c3b29 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -32,6 +32,7 @@ jobs: run: | set -e mkdir -p ./publish-logs + web_log="./publish-logs/publish-web.log" start=$(date +%s) # Web.Client needs a Release static-web-assets manifest for Web publish. # Build it explicitly so publish can reuse the prepared outputs. @@ -39,7 +40,7 @@ jobs: echo "--- Web.Client Release artifacts ---" ls -la src/TaxBaik.Web.Client/bin/Release/net10.0 || true ls -la src/TaxBaik.Web.Client/obj/Release/net10.0 || true - dotnet publish src/TaxBaik.Web/ \ + if ! dotnet publish src/TaxBaik.Web/ \ -c Release \ -o ./publish \ --no-restore \ @@ -48,7 +49,11 @@ jobs: -p:PublishReadyToRun=false \ -p:PerformanceSummary=true \ -clp:Summary \ - -bl:./publish-logs/publish-web.binlog + -bl:"./publish-logs/publish-web.binlog" >"$web_log" 2>&1; then + echo "=== Publish Web failed; tailing log ===" + tail -n 120 "$web_log" || true + exit 1 + fi end=$(date +%s) echo "✓ Publish Web elapsed: $((end - start))s" ls -lh ./publish-logs/publish-web.binlog