diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index e3d9ba1c..3c4c299a 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -176,8 +176,11 @@ jobs: shell: bash run: | rm -rf web/frontend - mkdir -p web/frontend - cp -r frontend/dist web/frontend/ + mkdir -p web/frontend/dist + cp -r frontend/dist/. web/frontend/dist/ + # Recreate the tracked .gitkeep so //go:embed all:frontend/dist + # always has something to embed (matches the Makefile frontend-build target). + touch web/frontend/dist/.gitkeep - name: Run tests (skip binary E2E tests - not compatible with cross-compilation) # Skip tests for Windows ARM64 (cross-compilation - can't run ARM64 binaries on AMD64 runner) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3af5d0b..cb0046ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -294,8 +294,11 @@ jobs: shell: bash run: | rm -rf web/frontend - mkdir -p web/frontend - cp -r frontend/dist web/frontend/ + mkdir -p web/frontend/dist + cp -r frontend/dist/. web/frontend/dist/ + # Recreate the tracked .gitkeep so //go:embed all:frontend/dist + # always has something to embed (matches the Makefile frontend-build target). + touch web/frontend/dist/.gitkeep - name: Import Code-Signing Certificates (macOS) if: matrix.goos == 'darwin'