build: set PAPAYU_PROJECT_ROOT in CI so beforeBuildCommand runs from workspace root

This commit is contained in:
Yuriy 2026-01-29 16:47:25 +03:00
parent 24146efec8
commit bbb66d44ae
2 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
PAPAYU_PROJECT_ROOT: ${{ github.workspace }}
with:
projectPath: desktop/src-tauri
includeUpdaterJson: true

View File

@ -14,8 +14,8 @@
},
"build": {
"beforeDevCommand": "cd ../ui && npm run dev -- --port 5173",
"beforeBuildCommand": "cd ../ui && npm run build",
"beforeDevCommand": "cd \"${PAPAYU_PROJECT_ROOT:-$HOME/PAPA-YU}/desktop/ui\" && npm run dev -- --port 5173",
"beforeBuildCommand": "cd \"${PAPAYU_PROJECT_ROOT:-$HOME/PAPA-YU}/desktop/ui\" && npm run build",
"devUrl": "http://localhost:5173",
"frontendDist": "../ui/dist"
},