Update release workflows #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Electron Release | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "desktop/**" | |
| - "web/**" | |
| - ".github/workflows/build-desktop.yml" | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install web dependencies | |
| run: npm install --workspace=web | |
| - name: Install desktop dependencies | |
| run: npm install --workspace=desktop | |
| - name: Rebuild native modules | |
| run: npm run rebuild-native --workspace=desktop | |
| - name: Build Electron App | |
| run: | | |
| npm run desktop-build |