name: Release on: push: tags: - "v*" workflow_dispatch: inputs: tag_name: description: "Tag name to release (e.g., v1.0.0)" required: true default: "v1.0.0" env: CARGO_TERM_COLOR: always jobs: build-tauri: permissions: contents: write strategy: fail-fast: false matrix: include: - platform: "ubuntu-22.04" args: "" - platform: "macos-14" # Intel args: "--target x86_64-apple-darwin" - platform: "macos-latest" # M1/M2/M3 args: "--target aarch64-apple-darwin" - platform: "windows-latest" args: "" runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - name: Install Dependencies (Linux) if: runner.os == 'Linux' run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev - name: Install Rust uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.platform == 'macos-14' && 'x86_64-apple-darwin' || matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }} - name: Build Tauri App uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tagName: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }} releaseName: "DropOut v__VERSION__" releaseBody: "See the assets to download this version and install." releaseDraft: true prerelease: false args: ${{ matrix.args }}