chore(desktop): gitignore nested Cargo target build artifacts #9
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: Desktop (macOS) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'apps/desktop/**' | |
| - 'apps/web/**' | |
| - 'packages/**' | |
| - 'scripts/desktop-stage.mjs' | |
| - 'scripts/desktop-publish-release.mjs' | |
| - 'src/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@1.88.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Stage desktop runtime | |
| run: npm run stage:desktop | |
| - name: Build desktop app | |
| run: npm run build:app -w @codedelta/desktop -- --bundles dmg | |
| - name: Upload dmg artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: codedelta-macos-dmg | |
| path: | | |
| apps/desktop/src-tauri/target/release/bundle/dmg/*.dmg | |
| if-no-files-found: error | |
| - name: Publish dmg to GitHub Release | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| set -euo pipefail | |
| DMG=$(ls apps/desktop/src-tauri/target/release/bundle/dmg/*.dmg) | |
| node scripts/desktop-publish-release.mjs macos "$DMG" | |
| # Optional: add APPLE_CERTIFICATE / notarytool steps when signing secrets are configured. |