-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3352a9
commit adffd86
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |