From 9ee812f563d7491a669b639880fdd1fb4d76ea67 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 4 Jul 2026 04:51:26 +0900 Subject: [PATCH] fix: add linux-x64 runtime to restore and remove --no-build from publish Problem: - CI runs on Linux (ubuntu-latest) - Local restore was Windows-only, missing linux-x64 runtime - --no-build skipped rebuild, so publish used stale assets Solution: - dotnet restore -r linux-x64 (include Linux runtime) - Remove --no-build from publish (allow rebuild if needed) This fixes NETSDK1047 error on Linux CI. Co-Authored-By: Claude Haiku 4.5 --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 24b813e..685b5aa 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,8 +19,8 @@ jobs: with: dotnet-version: '10.0' - - name: Restore dependencies - run: dotnet restore src/TaxBaik.sln + - name: Restore dependencies (include Linux runtime) + run: dotnet restore src/TaxBaik.sln -r linux-x64 - name: Build solution run: dotnet build src/TaxBaik.sln -c Release --no-restore -p:ContinuousIntegrationBuild=true @@ -29,7 +29,7 @@ jobs: run: dotnet test src/TaxBaik.sln -c Release --no-build - name: Publish Web (auto-includes WASM from referenced TaxBaik.Web.Client) - run: dotnet publish src/TaxBaik.Web/ -c Release -o ./publish --no-restore --no-build -p:PublishReadyToRun=true -p:SelfContained=false + run: dotnet publish src/TaxBaik.Web/ -c Release -o ./publish --no-restore -p:PublishReadyToRun=true -p:SelfContained=false - name: Publish Proxy run: dotnet publish src/TaxBaik.Proxy/ -c Release -o ./publish/proxy