Skip to content

release_created

release_created #30

Workflow file for this run

name: CI - Build Application
on:
repository_dispatch:
types: [release_created]
workflow_dispatch:
permissions: write-all
jobs:
build-mac:
name: Build for macOS (Universal)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up env.APP_CONF to Release
run: |
echo "APP_CONF=Release" >> $GITHUB_ENV
- name: Build for macOS (Universal)
shell: bash
run: |
xcodebuild -project 'NotchDrop.xcodeproj' -scheme 'NotchDrop' -configuration '${{ env.APP_CONF }}' -destination 'platform=macOS' build -derivedDataPath 'build' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Create DMG
shell: bash
run: |
hdiutil create -volname "NotchDrop" -srcfolder "build/Build/Products/${{ env.APP_CONF }}/NotchDrop.app" -ov -format UDZO "NotchDrop.dmg"
- name: Upload DMG Artifact
uses: actions/upload-artifact@v4
with:
name: NotchDrop
path: NotchDrop.dmg
- name: Upload DMG to GitHub Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: NotchDrop.dmg