This repository was archived by the owner on Sep 4, 2026. It is now read-only.
Merge pull request #24 from Ag3497120/chore/root-hygiene-demo-release #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 and Release macOS App | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' # Trigger on version tags like v1.0.0 | |
| workflow_dispatch: # Allow manual trigger for testing | |
| jobs: | |
| build: | |
| # Use macos-14 which provides Apple Silicon (M1) runners natively | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Make package script executable | |
| run: chmod +x cli/package_dmg.sh | |
| - name: Build and Package DMG (Ad-Hoc) | |
| run: | | |
| cd cli | |
| # Extract version from GitHub tag (e.g. refs/tags/v1.0.0 -> 1.0.0) | |
| VERSION=${GITHUB_REF_NAME#v} | |
| if [ -z "$VERSION" ] || [ "$VERSION" = "main" ]; then | |
| VERSION="0.0.0-dev" | |
| fi | |
| bash package_dmg.sh "$VERSION" | |
| - name: Upload Artifact (for manual runs) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: VerantyxIDE-macOS-App | |
| path: cli/dist/*.dmg | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: cli/dist/*.dmg | |
| generate_release_notes: true |