This repository was archived by the owner on Feb 21, 2026. It is now read-only.
publish #56
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: 'publish' | |
| on: | |
| workflow_dispatch: | |
| # This workflow will trigger on each push to the `master` branch to create or update a GitHub release, build your app, and upload the artifacts to the release. | |
| # It will skip if only markdown files (including README) are changed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish-tauri: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Windows ARM64 build | |
| - platform: 'windows-arm64' | |
| runner: 'windows-11-arm' | |
| args: '--target aarch64-pc-windows-msvc' | |
| rust_target: 'aarch64-pc-windows-msvc' | |
| # Windows x64 build | |
| - platform: 'windows-x64' | |
| runner: 'windows-latest' | |
| args: '' | |
| rust_target: 'x86_64-pc-windows-msvc' | |
| # macOS Apple Silicon (ARM64) build | |
| - platform: 'macos-arm64' | |
| runner: 'macos-latest' | |
| args: '--target aarch64-apple-darwin' | |
| rust_target: 'aarch64-apple-darwin' | |
| # macOS Intel (x64) build | |
| - platform: 'macos-x64' | |
| runner: 'macos-latest' | |
| args: '--target x86_64-apple-darwin' | |
| rust_target: 'x86_64-apple-darwin' | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.rust_target }} | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| cache-on-failure: true | |
| shared-key: ${{ matrix.platform }} | |
| - name: install frontend dependencies | |
| run: npm ci | |
| - 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: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | |
| releaseName: 'v__VERSION__' | |
| releaseBody: 'See the assets to download this version and install.' | |
| releaseDraft: true | |
| prerelease: false | |
| args: ${{ matrix.args }} |