From fd06fd9dae5e28709d41a3a1b8084e84a9379c63 Mon Sep 17 00:00:00 2001 From: ImSavsis Date: Sun, 19 Jul 2026 06:34:20 +0500 Subject: [PATCH] ci: unsigned ios ipa build via github actions macos runner --- .github/workflows/ios-unsigned.yml | 40 ++++++++++++++++++++++++++++++ eas.json | 20 +++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/ios-unsigned.yml create mode 100644 eas.json diff --git a/.github/workflows/ios-unsigned.yml b/.github/workflows/ios-unsigned.yml new file mode 100644 index 0000000..457ff64 --- /dev/null +++ b/.github/workflows/ios-unsigned.yml @@ -0,0 +1,40 @@ +name: ios-unsigned + +on: + workflow_dispatch: + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npx expo prebuild --platform ios --no-install + - run: cd ios && pod install + - name: detect scheme + id: scheme + run: | + cd ios + NAME=$(xcodebuild -workspace *.xcworkspace -list | awk '/Schemes:/{getline; print; exit}' | xargs) + echo "name=$NAME" >> "$GITHUB_OUTPUT" + - name: build unsigned .app + run: | + cd ios + xcodebuild -workspace *.xcworkspace -scheme "${{ steps.scheme.outputs.name }}" -configuration Release \ + -sdk iphoneos -derivedDataPath build \ + CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" \ + build + - name: package ipa + run: | + cd ios/build/Build/Products/Release-iphoneos + mkdir Payload + cp -r *.app Payload/ + zip -r AniSav.ipa Payload + - uses: actions/upload-artifact@v4 + with: + name: AniSav-unsigned + path: ios/build/Build/Products/Release-iphoneos/AniSav.ipa diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..0a1ef0e --- /dev/null +++ b/eas.json @@ -0,0 +1,20 @@ +{ + "cli": { + "version": ">= 16.0.0", + "appVersionSource": "local" + }, + "build": { + "preview": { + "distribution": "internal", + "ios": { + "simulator": false + } + }, + "production": { + "autoIncrement": true + } + }, + "submit": { + "production": {} + } +}