chore: bump desktop version to 0.3.1 #6
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: Release | |
| # Build and publish a GitHub Release with installers for macOS, Linux and | |
| # Windows whenever a version tag (e.g. v0.1.0a) is pushed. | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| - '[0-9]*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest # Apple Silicon (arm64) | |
| - os: ubuntu-22.04 # Linux x86_64 | |
| - os: windows-latest # Windows x86_64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux dependencies | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \ | |
| libayatana-appindicator3-dev librsvg2-dev libxdo-dev \ | |
| build-essential file libssl-dev | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| - run: pnpm install --frozen-lockfile | |
| # tauri-action runs beforeBuildCommand (pnpm build), bundles the app and | |
| # uploads the installers to a release named after the tag. The engine is | |
| # no longer bundled — the app drives the system-installed `jucode` CLI. | |
| # | |
| # Auto-update: with TAURI_SIGNING_PRIVATE_KEY set (repo secret) and | |
| # bundle.createUpdaterArtifacts enabled in tauri.conf.json, tauri-action | |
| # additionally signs the updater bundles (.sig files) and generates + | |
| # uploads latest.json, which installed clients poll via the endpoint in | |
| # plugins.updater. Key generation & setup: see docs/updater.md. | |
| - uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseName: ${{ github.ref_name }} | |
| releaseDraft: false | |
| prerelease: false | |
| releaseBody: | | |
| Automated build. macOS builds are unsigned — on first launch use | |
| right-click → Open, or run `xattr -cr /Applications/JuCode.app`. |