Skip to content

fix: github android ci build wrong versionCode (#972) #441

fix: github android ci build wrong versionCode (#972)

fix: github android ci build wrong versionCode (#972) #441

name: Build iOS App
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: macos-14
continue-on-error: true
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
- uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Select xcode
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: 18
- name: Fix package.json
run: yarn remove @lottiefiles/react-lottie-player
- name: Install node modules
run: yarn install
- name: Bump ios buildNumber
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: make bump-app-build-number
- name: Fix gitignore
run: npx tsx ./packages/scripts/app-build/fixGitignore.ts
- name: Restore wesh framework from cache if possible
uses: actions/cache@v4
with:
path: weshd/ios/Frameworks/WeshFramework.xcframework
key: cache_wesh-framework_ios_go1.19_macos-14_${{ hashFiles('weshd/**/*.go', 'weshd/go.mod', 'weshd/go.sum') }}
- name: Build ios weshframework
run: make check-ios-weshframework
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Build ios
run: eas build --local --non-interactive --platform=ios
- name: Update IPA File path
run: |
IPA_FILE=$(find ./ -name 'build-*.ipa' -type f)
if [ -z "$IPA_FILE" ]; then
echo "Error: IPA file not found."
exit 1
fi
echo "IPA_FILE=$IPA_FILE" >> $GITHUB_ENV
- name: EAS Submit iOS IPA
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: eas submit --platform=ios --path=${{ env.IPA_FILE }} --profile=production
- name: Upload IPA
uses: actions/upload-artifact@v3
with:
name: teritori-${{ github.sha }}.ipa
path: ${{ env.IPA_FILE }}
if-no-files-found: error