Create build.yml #2
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 iOS IPA | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install Cordova | |
| run: npm install -g cordova | |
| - name: Create App Project | |
| run: | | |
| cordova create build-folder com.yourname.gtatool GTATool | |
| cd build-folder | |
| cordova platform add ios | |
| cp ../index.html www/index.html | |
| # This prepares the Xcode project | |
| cordova prepare ios | |
| - name: Build and Package | |
| run: | | |
| cd build-folder/platforms/ios | |
| # 1. Build the .app folder | |
| xcodebuild -project GTATool.xcodeproj -scheme GTATool -configuration Debug -sdk iphoneos -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO | |
| # 2. Create the Payload folder (Required for IPA structure) | |
| mkdir -p Payload | |
| # 3. Find the built .app and move it into Payload | |
| APP_PATH=$(find build -name "*.app" | head -n 1) | |
| cp -r "$APP_PATH" Payload/ | |
| # 4. Zip it into a .ipa | |
| zip -r GTATool-Unsigned.ipa Payload | |
| - name: Upload IPA Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gta-tool-ipa | |
| path: build-folder/platforms/ios/GTATool-Unsigned.ipa |