Lain Iwakura eb1ff2f1ab
mb fix???
2025-08-07 00:17:48 +03:00

62 lines
1.5 KiB
YAML

name: Build IPA
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: List Files
run: |
ls -la
find . -name "*.xcodeproj" -type d
- name: Clean Project
run: |
rm -rf ~/Library/Developer/Xcode/DerivedData
xcodebuild clean -project MobileMkch.xcodeproj -scheme MobileMkch
- name: Fix Project
run: |
cd MobileMkch.xcodeproj
find . -name "*.pbxproj" -exec sed -i '' 's/isa = ".*";/isa = "PBXFileReference";/g' {} \;
cd ..
- name: Build Archive
run: |
xcodebuild -project MobileMkch.xcodeproj \
-scheme MobileMkch \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath MobileMkch.xcarchive \
archive \
-verbose
- name: Create Payload
run: |
mkdir -p Payload
cp -r MobileMkch.xcarchive/Products/Applications/MobileMkch.app Payload/
- name: Create IPA
run: |
zip -r MobileMkch.ipa Payload/
- name: Upload IPA
uses: actions/upload-artifact@v4
with:
name: MobileMkch-ipa
path: MobileMkch.ipa