Skip to content

Commit f02e7a4

Browse files
committed
Fix Tauri workflow to use CLI v2
1 parent 6149ac7 commit f02e7a4

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/tauri-release.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,28 @@ jobs:
3535
with:
3636
workspaces: './src-tauri -> target'
3737

38-
- uses: tauri-apps/tauri-action@v0
38+
# Install Tauri CLI v2
39+
- name: Install Tauri CLI
40+
run: npm install -g @tauri-apps/cli@^2.0.0
41+
42+
# Build manually instead of using tauri-action (which defaults to v1)
43+
- name: Build Tauri app
44+
run: cargo tauri build
45+
working-directory: src-tauri
46+
47+
# Upload artifacts
48+
- name: Upload DMG
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: KJV-Study-macOS
52+
path: src-tauri/target/release/bundle/dmg/*.dmg
53+
54+
# Create release
55+
- name: Create Release
56+
uses: softprops/action-gh-release@v1
57+
if: startsWith(github.ref, 'refs/tags/')
58+
with:
59+
draft: true
60+
files: src-tauri/target/release/bundle/dmg/*.dmg
3961
env:
4062
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
with:
42-
tagName: ${{ github.ref_name }}
43-
releaseName: 'KJV Study ${{ github.ref_name }}'
44-
releaseDraft: true

0 commit comments

Comments
 (0)