release: v0.20.0 #94
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 | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| - platform: macos-latest | |
| target: aarch64-apple-darwin | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build Tauri app | |
| 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: | |
| args: --target ${{ matrix.target }} | |
| tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }} | |
| releaseName: ${{ github.ref_type == 'tag' && github.ref_name || '' }} | |
| releaseBody: "Download the installer for your platform below." | |
| releaseDraft: false | |
| prerelease: false | |
| updaterJsonPreferNsis: true | |
| - name: Upload artifacts | |
| if: github.ref_type != 'tag' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: QueryLoL-${{ matrix.platform == 'windows-latest' && 'windows' || 'macos' }} | |
| path: | | |
| src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*.exe | |
| src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg |