Fix Tauri workflow to use CLI v2

This commit is contained in:
2025-12-15 22:08:57 -05:00
parent 6149ac7004
commit f02e7a400c
+23 -5
View File
@@ -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