From e3f63b88bfb9ecd2e76910eaf538c169c79ab958 Mon Sep 17 00:00:00 2001 From: mircearoata Date: Sun, 4 Feb 2024 12:25:02 +0100 Subject: [PATCH] Fix CI frontend lint failing to generate bindings --- .github/workflows/push.yml | 6 +++++- .goreleaser.yml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 87669878..81eb0ac9 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -91,7 +91,11 @@ jobs: run: go install github.com/wailsapp/wails/v2/cmd/wails@latest - name: Generate wails bindings - run: wails generate module + run: | + # Apparently only wails build generates the embedded directory + mkdir -p frontend/build + touch frontend/build/.gitkeep + wails generate module - name: Install dependencies working-directory: frontend diff --git a/.goreleaser.yml b/.goreleaser.yml index 42f53bd8..79264b82 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,8 +5,11 @@ before: - go generate -x -tags tools ./... - go mod tidy - ./.github/convertWailsJsonPaths.sh + + # Apparently only wails build generates the embedded directory - mkdir -p frontend/build - touch frontend/build/.gitkeep + - wails generate module - pnpm -C frontend install - pnpm -C frontend build