diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 837722d..e71dcf1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -89,6 +89,12 @@ jobs: working-directory: ./cinny run: npm install --prefer-offline + - name: Clean previous builds + shell: powershell + run: | + if (Test-Path cinny/dist) { Remove-Item -Recurse -Force cinny/dist } + if (Test-Path dist-electron) { Remove-Item -Recurse -Force dist-electron } + - name: Build Electron app run: npm run build:win env: @@ -139,6 +145,10 @@ jobs: working-directory: ./cinny run: npm ci --prefer-offline + - name: Clean previous builds + run: | + rm -rf cinny/dist dist-electron + - name: Build Electron app run: npm run build:linux env: