mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 14:50:17 +00:00
Fix Tauri workflow to use CLI v2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user