Update workflows once again #19
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: 🏗️ CI | |
on: push | |
jobs: | |
build: | |
name: 🛠️ Build Switcher | |
runs-on: macos-latest | |
steps: | |
- name: 📥 Checkout code | |
uses: actions/checkout@v4 | |
- name: 🔨 Build Xcode project | |
uses: sersoft-gmbh/xcodebuild-action@v3 | |
with: | |
project: Switcher.xcodeproj | |
scheme: Switcher | |
destination: platform=macOS | |
configuration: Release | |
action: build | |
build-settings: CONFIGURATION_BUILD_DIR=build/Release | |
- name: 💿 Create .dmg | |
run: | | |
mkdir -p build/dmg/Switcher | |
cp -R build/Release/Switcher.app build/dmg/Switcher/ | |
ln -s /Applications build/dmg/Switcher/Applications | |
hdiutil create -volname Switcher \ | |
-srcfolder build/dmg/Switcher \ | |
-ov -format UDRO \ | |
build/dmg/Switcher-${{ github.ref_type == 'tag' && github.ref_name || github.sha }}.dmg | |
- name: 💎 Upload Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Switcher-Build | |
path: build/dmg/Switcher-${{ github.ref_type == 'tag' && github.ref_name || github.sha }}.dmg |