fix: clean dist folders before building to prevent stale files
This commit is contained in:
@@ -89,6 +89,12 @@ jobs:
|
|||||||
working-directory: ./cinny
|
working-directory: ./cinny
|
||||||
run: npm install --prefer-offline
|
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
|
- name: Build Electron app
|
||||||
run: npm run build:win
|
run: npm run build:win
|
||||||
env:
|
env:
|
||||||
@@ -139,6 +145,10 @@ jobs:
|
|||||||
working-directory: ./cinny
|
working-directory: ./cinny
|
||||||
run: npm ci --prefer-offline
|
run: npm ci --prefer-offline
|
||||||
|
|
||||||
|
- name: Clean previous builds
|
||||||
|
run: |
|
||||||
|
rm -rf cinny/dist dist-electron
|
||||||
|
|
||||||
- name: Build Electron app
|
- name: Build Electron app
|
||||||
run: npm run build:linux
|
run: npm run build:linux
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user