ci: add proxy build precheck and publish logs
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m43s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m43s
This commit is contained in:
@@ -56,11 +56,13 @@ jobs:
|
|||||||
# Proxy is not part of the solution restore graph, so restore it once
|
# Proxy is not part of the solution restore graph, so restore it once
|
||||||
# here before publishing to avoid NETSDK1004 in CI.
|
# here before publishing to avoid NETSDK1004 in CI.
|
||||||
dotnet restore src/TaxBaik.Proxy/
|
dotnet restore src/TaxBaik.Proxy/
|
||||||
|
dotnet build src/TaxBaik.Proxy/TaxBaik.Proxy.csproj -c Release --no-restore
|
||||||
start=$(date +%s)
|
start=$(date +%s)
|
||||||
dotnet publish src/TaxBaik.Proxy/ \
|
dotnet publish src/TaxBaik.Proxy/ \
|
||||||
-c Release \
|
-c Release \
|
||||||
-o ./publish/proxy \
|
-o ./publish/proxy \
|
||||||
--no-restore \
|
--no-restore \
|
||||||
|
--no-build \
|
||||||
-p:PublishReadyToRun=false \
|
-p:PublishReadyToRun=false \
|
||||||
-p:PerformanceSummary=true \
|
-p:PerformanceSummary=true \
|
||||||
-clp:Summary \
|
-clp:Summary \
|
||||||
@@ -69,6 +71,12 @@ jobs:
|
|||||||
echo "✓ Publish Proxy elapsed: $((end - start))s"
|
echo "✓ Publish Proxy elapsed: $((end - start))s"
|
||||||
ls -lh ./publish-logs/publish-proxy.binlog
|
ls -lh ./publish-logs/publish-proxy.binlog
|
||||||
|
|
||||||
|
- name: Upload publish logs
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: publish-logs
|
||||||
|
path: ./publish-logs/
|
||||||
|
|
||||||
- name: Write production secrets
|
- name: Write production secrets
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in New Issue
Block a user