fix: Update app path handling in macOS release workflow #9
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*" | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode.app | |
| - name: Build App | |
| run: | | |
| xcodebuild \ | |
| -project Launchpad_Back.xcodeproj \ | |
| -scheme Launchpad_Back \ | |
| -configuration Release \ | |
| -destination "platform=macOS" \ | |
| -derivedDataPath build \ | |
| MACOSX_DEPLOYMENT_TARGET=15.0 \ | |
| CODE_SIGNING_ALLOWED=NO build | |
| - name: Find built app | |
| id: find_app | |
| run: | | |
| APP_PATH=$(find build -name "Launchpad_Back.app" -type d | head -n 1) | |
| if [ -z "$APP_PATH" ]; then | |
| echo "❌ Error: Launchpad_Back.app not found!" | |
| exit 1 | |
| fi | |
| echo "Found app at $APP_PATH" | |
| echo "APP_PATH=$APP_PATH" >> $GITHUB_ENV | |
| - name: Zip App | |
| run: | | |
| zip -r Launchpad_Back-macOS.zip "$APP_PATH" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| files: Launchpad_Back-macOS.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |