Skip to content

Commit

Permalink
Build ios app with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansteinert committed Nov 30, 2023
1 parent f3352a9 commit adffd86
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@


name: Build Cordova App for iOS

on:
push:
branches: [ main, github-actions-test]

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Xcode
uses: actions/setup-xcode@v2
with:
xcode-version: '15.0.1'

# - name: Make sure that xcode is installed
# run: xcode-select --install

- name: Install Node.js and npm
uses: actions/setup-node@v2
with:
node-version: '18.x'

- name: Install Cordova
run: |
npm install -g cordova@12.0.0
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.npm
~/.cache
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build Cordova App for iOS
run: |
cd _build/mobile/tibetandict/
npm install
cordova platform remove ios
cordova platform add ios
cordova build ios
- name: Sign and upload app
run: xcrun altool --upload-app -f MyApp.xcarchive/Products/Applications/MyApp.ipa -u $APP_STORE_USERNAME -p $APP_STORE_PASSWORD


#codesign --force --sign "iPhone Developer" --verbose --entitlements entitlements.plist /path/to/YourApp.app --identifier com.yourcompany.yourapp --provisioning-profile /path/to/YourProfile.mobileprovision

0 comments on commit adffd86

Please sign in to comment.