diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2edb462b..42d5f665 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -117,12 +117,15 @@ jobs: # CURRENT_ROADMAP.md item #3) -- this release zip must build them fresh, # the same way .gitea/workflows/deploy.yml does for production. run: | + set -e pnpm install --frozen-lockfile pnpm build - mkdir -p ../src/KArtSell.Host/wwwroot - rm -rf ../src/KArtSell.Host/wwwroot/* - cp -R dist/. ../src/KArtSell.Host/wwwroot/ - ls -la ../src/KArtSell.Host/wwwroot/ | head -20 + WWWROOT_DIR="../src/KArtSell.Host/wwwroot" + rm -rf "$WWWROOT_DIR" + mkdir -p "$WWWROOT_DIR" + cp -R dist/* "$WWWROOT_DIR/" + echo "Frontend assets copied to Host wwwroot:" + ls -la "$WWWROOT_DIR" | head -20 working-directory: frontend - name: Publish Release Build