feat: add client-based clipboard sync (HTTP-safe fallback without HTTPS) #93
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 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches-ignore: | |
| - main | |
| - master | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "public/**" | |
| - "electron/**" | |
| - "package.json" | |
| - "vite.config.ts" | |
| - ".github/workflows/**" | |
| - ".electronbuilderignore" | |
| jobs: | |
| build-electron: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Clean node_modules and npm cache (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| if (Test-Path node_modules) { Remove-Item -Recurse -Force node_modules } | |
| npm cache clean --force | |
| shell: pwsh | |
| - name: Clean node_modules and npm cache (macOS/Linux) | |
| if: runner.os != 'Windows' | |
| run: | | |
| rm -rf node_modules package-lock.json || true | |
| npm cache clean --force | |
| - name: Install dependencies (Windows) | |
| if: runner.os == 'Windows' | |
| run: npm ci --include=optional | |
| - name: Install dependencies (macOS/Linux) | |
| if: runner.os != 'Windows' | |
| run: npm install --include=optional --force | |
| - name: Rebuild native dependencies | |
| run: npx electron-builder install-app-deps | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Package Electron app | |
| run: npm run dist -- --publish=never | |
| - name: Upload Electron Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: electron-${{ matrix.os }} | |
| path: dist/** | |
| retention-days: 7 |