diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 65b8c79..2c1d52a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,8 +30,17 @@ jobs: - name: Test solution run: dotnet test TaxBaik.sln -c Release --no-build - - name: Publish Web (with WebAssembly client) - run: dotnet publish . -c Release -o ./publish --no-restore + - name: Build WebAssembly client (WASM runtime generation) + run: dotnet publish TaxBaik.Web.Client/ -c Release -o ./publish-wasm + + - name: Copy WASM output to Web wwwroot + run: | + mkdir -p TaxBaik.Web/wwwroot/_framework + cp -r ./publish-wasm/wwwroot/_framework/* TaxBaik.Web/wwwroot/_framework/ + cp -r ./publish-wasm/wwwroot/index.html TaxBaik.Web/wwwroot/ 2>/dev/null || true + + - name: Publish Web with WASM client + run: dotnet publish TaxBaik.Web/ -c Release -o ./publish --no-restore - name: Publish Proxy run: dotnet publish TaxBaik.Proxy/ -c Release -o ./publish/proxy diff --git a/TaxBaik.Web.Client/wwwroot/index.html b/TaxBaik.Web.Client/wwwroot/index.html index e618e7a..1232a3d 100644 --- a/TaxBaik.Web.Client/wwwroot/index.html +++ b/TaxBaik.Web.Client/wwwroot/index.html @@ -12,6 +12,7 @@
- + +