Add Windows build to release workflow #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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| args: --target aarch64-apple-darwin | |
| rust-target: aarch64-apple-darwin | |
| - os: macos-latest | |
| args: --target x86_64-apple-darwin | |
| rust-target: x86_64-apple-darwin | |
| - os: windows-latest | |
| args: '' | |
| rust-target: '' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.rust-target }} | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri -> target | |
| key: ${{ matrix.os }}-${{ matrix.rust-target }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build & release | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseName: Stash ${{ github.ref_name }} | |
| releaseBody: | | |
| Download Stash below — macOS (Apple Silicon + Intel) and Windows. | |
| Visit [stash.swendl.com](https://stash.swendl.com) for the full changelog and more information. | |
| releaseDraft: false | |
| prerelease: false | |
| args: ${{ matrix.args }} |