name: Build Unsigned Debug IPA on: push: branches: [ "main" ] pull_request: branches: [ "main" ] workflow_dispatch: permissions: contents: write jobs: build: name: Build Debug IPA runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Xcode (latest stable) uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: 'latest-stable' - name: Archive Build (Debug, Unsigned) run: | xcodebuild clean archive \ -project StikDebug.xcodeproj \ -scheme "StikDebug" \ -configuration Debug \ -archivePath build/StikDebug.xcarchive \ -sdk iphoneos \ -destination 'generic/platform=iOS' \ ONLY_ACTIVE_ARCH=NO \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_ALLOWED=NO \ SWIFT_OPTIMIZATION_LEVEL="-Onone" \ IPHONEOS_DEPLOYMENT_TARGET=17.4 - name: Create IPA from Archive run: | cp -R build/StikDebug.xcarchive/Products/Applications/StikDebug.app . mkdir -p Payload cp -R StikDebug.app Payload/ zip -r StikDebug.ipa Payload rm -rf Payload StikDebug.app - name: Upload Debug IPA (artifact) uses: actions/upload-artifact@v4 with: name: StikDebug-Debug.ipa path: StikDebug.ipa retention-days: 90 - name: Create or Update GitHub Release (GitHub-Alpha) if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: tag_name: GitHub-Alpha name: GitHub-Alpha prerelease: true generate_release_notes: true target_commitish: ${{ github.sha }} files: | StikDebug.ipa env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}