From f02e7a400c2cdb3cb4e1e4bddcff3ea7e73ae2ab Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 15 Dec 2025 22:08:57 -0500 Subject: [PATCH] Fix Tauri workflow to use CLI v2 --- .github/workflows/tauri-release.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index ef3a92a..1d2b8fd 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -35,10 +35,28 @@ jobs: with: workspaces: './src-tauri -> target' - - uses: tauri-apps/tauri-action@v0 + # Install Tauri CLI v2 + - name: Install Tauri CLI + run: npm install -g @tauri-apps/cli@^2.0.0 + + # Build manually instead of using tauri-action (which defaults to v1) + - name: Build Tauri app + run: cargo tauri build + working-directory: src-tauri + + # Upload artifacts + - name: Upload DMG + uses: actions/upload-artifact@v4 + with: + name: KJV-Study-macOS + path: src-tauri/target/release/bundle/dmg/*.dmg + + # Create release + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: src-tauri/target/release/bundle/dmg/*.dmg env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tagName: ${{ github.ref_name }} - releaseName: 'KJV Study ${{ github.ref_name }}' - releaseDraft: true