This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
mkdir -p ./publish-logs
|
mkdir -p ./publish-logs
|
||||||
|
web_log="./publish-logs/publish-web.log"
|
||||||
start=$(date +%s)
|
start=$(date +%s)
|
||||||
# Web.Client needs a Release static-web-assets manifest for Web publish.
|
# Web.Client needs a Release static-web-assets manifest for Web publish.
|
||||||
# Build it explicitly so publish can reuse the prepared outputs.
|
# Build it explicitly so publish can reuse the prepared outputs.
|
||||||
@@ -39,7 +40,7 @@ jobs:
|
|||||||
echo "--- Web.Client Release artifacts ---"
|
echo "--- Web.Client Release artifacts ---"
|
||||||
ls -la src/TaxBaik.Web.Client/bin/Release/net10.0 || true
|
ls -la src/TaxBaik.Web.Client/bin/Release/net10.0 || true
|
||||||
ls -la src/TaxBaik.Web.Client/obj/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 \
|
-c Release \
|
||||||
-o ./publish \
|
-o ./publish \
|
||||||
--no-restore \
|
--no-restore \
|
||||||
@@ -48,7 +49,11 @@ jobs:
|
|||||||
-p:PublishReadyToRun=false \
|
-p:PublishReadyToRun=false \
|
||||||
-p:PerformanceSummary=true \
|
-p:PerformanceSummary=true \
|
||||||
-clp:Summary \
|
-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)
|
end=$(date +%s)
|
||||||
echo "✓ Publish Web elapsed: $((end - start))s"
|
echo "✓ Publish Web elapsed: $((end - start))s"
|
||||||
ls -lh ./publish-logs/publish-web.binlog
|
ls -lh ./publish-logs/publish-web.binlog
|
||||||
|
|||||||
Reference in New Issue
Block a user