Repository navigation
ci: seperate build workflows #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build macOS" | |
| on: | |
| push: | |
| branches: | |
| - release | |
| jobs: | |
| publish-tauri-macos: | |
| permissions: | |
| contents: write | |
| actions: write | |
| id-token: write | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # 🟢 Install pnpm FIRST | |
| - name: install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| run_install: false | |
| # 🟢 Configure Node | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: "pnpm" | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "./src-tauri -> target" | |
| - name: install frontend dependencies | |
| run: pnpm install | |
| # 🛠 Build Tauri App | |
| - name: Build Tauri App | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: app-v__VERSION__ | |
| releaseName: "App v__VERSION__" | |
| releaseBody: "See the assets to download this version and install." | |
| releaseDraft: true | |
| prerelease: false | |
| args: "" | |
| # 📦 Upload macOS artifacts | |
| - name: Upload macOS Artifacts (.dmg, .app, etc.) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos-tauri-build | |
| path: | | |
| src-tauri/target/release/bundle/dmg/* | |
| src-tauri/target/release/bundle/macos/* | |
| src-tauri/target/release/bundle/*/* | |
| if-no-files-found: warn | |