Skip to content

Commit 34f6cda

Browse files
authored
Create build.yml
1 parent 7d62003 commit 34f6cda

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build iOS IPA
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: macos-latest
7+
steps:
8+
- name: Checkout Code
9+
uses: actions/checkout@v4
10+
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20'
15+
16+
- name: Install Cordova
17+
run: npm install -g cordova
18+
19+
- name: Create App Project
20+
run: |
21+
cordova create build-folder com.yourname.gtatool GTATool
22+
cd build-folder
23+
cordova platform add ios
24+
cp ../index.html www/index.html
25+
# This prepares the Xcode project
26+
cordova prepare ios
27+
28+
- name: Build and Package
29+
run: |
30+
cd build-folder/platforms/ios
31+
# 1. Build the .app folder
32+
xcodebuild -project GTATool.xcodeproj -scheme GTATool -configuration Debug -sdk iphoneos -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
33+
34+
# 2. Create the Payload folder (Required for IPA structure)
35+
mkdir -p Payload
36+
37+
# 3. Find the built .app and move it into Payload
38+
APP_PATH=$(find build -name "*.app" | head -n 1)
39+
cp -r "$APP_PATH" Payload/
40+
41+
# 4. Zip it into a .ipa
42+
zip -r GTATool-Unsigned.ipa Payload
43+
44+
- name: Upload IPA Artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: gta-tool-ipa
48+
path: build-folder/platforms/ios/GTATool-Unsigned.ipa

0 commit comments

Comments
 (0)