Skip to content

Commit 2cfbf0a

Browse files
authored
ci: fix artefacts path
1 parent 9f8eaf1 commit 2cfbf0a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/tauri-release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
args: '--target x86_64-apple-darwin' # Intel Mac
2222
- platform: 'ubuntu-22.04'
2323
args: ''
24+
2425

2526
runs-on: ${{ matrix.platform }}
2627
steps:
@@ -53,13 +54,11 @@ jobs:
5354
working-directory: ./src
5455

5556
- name: Build Frontend (Vue)
56-
# This uses Node to copy files so it never fails on Windows/Unix
57+
# Using npx ensures these tools work on Windows, Mac, and Linux
5758
run: |
58-
npm run build
59+
npx cross-env DESKTOP_MODE=true npm run build
5960
node -e "const fs = require('fs'); const src='./dist/index-cv.html'; const dest='./dist/index.html'; if (fs.existsSync(src)) { fs.copyFileSync(src, dest); console.log('Synced index files'); } else { console.log('index-cv.html not found, skipping sync'); }"
6061
working-directory: ./src
61-
env:
62-
DESKTOP_MODE: true
6362

6463
- name: Build Tauri App
6564
uses: tauri-apps/tauri-action@v0
@@ -74,13 +73,14 @@ jobs:
7473
prerelease: false
7574
args: ${{ matrix.args }}
7675

77-
# Optional: Keep this if you want to see files in the 'Actions' tab as well
7876
- name: Upload Artifacts
7977
uses: actions/upload-artifact@v4
8078
with:
8179
name: build-assets-${{ matrix.platform }}-${{ strategy.job-index }}
8280
path: |
83-
src-tauri/target/release/bundle/dmg/*.dmg
84-
src-tauri/target/release/bundle/msi/*.msi
85-
src-tauri/target/release/bundle/deb/*.deb
86-
src-tauri/target/release/bundle/appimage/*.AppImage
81+
src-tauri/target/**/release/bundle/dmg/*.dmg
82+
src-tauri/target/**/release/bundle/macos/*.app
83+
src-tauri/target/**/release/bundle/msi/*.msi
84+
src-tauri/target/**/release/bundle/nsis/*.exe
85+
src-tauri/target/**/release/bundle/deb/*.deb
86+
src-tauri/target/**/release/bundle/appimage/*.AppImage

0 commit comments

Comments
 (0)