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