Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Update to SDK 3.8.0 (#65) #109

Update to SDK 3.8.0 (#65)

Update to SDK 3.8.0 (#65) #109

Workflow file for this run

name: iOS Build and Distribution
on:
push:
branches:
- main
tags:
- '*'
jobs:
Build-And-Deploy-To-Firebase:
runs-on: macos-12
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install modules
run: yarn install
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.1.2
- name: Build App and Upload to Firebase
env:
IOS_FIREBASE_APP_ID: ${{ secrets.IOS_FIREBASE_APP_ID }}
IOS_TEMP_KEYCHAIN_NAME: ${{ secrets.IOS_TEMP_KEYCHAIN_NAME_ENTERPRISE }}
IOS_TEMP_KEYCHAIN_PASSWORD: ${{ secrets.IOS_TEMP_KEYCHAIN_PASSWORD_ENTERPRISE }}
IOS_CERTIFICATE_BASE64: ${{ secrets.IOS_CERTIFICATE_BASE64_ENTERPRISE }}
IOS_P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD_ENTERPRISE }}
IOS_PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_PROVISIONING_PROFILE_BASE64_ENTERPRISE }}
IOS_EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.IOS_EXPORT_OPTIONS_PLIST_BASE64_ENTERPRISE }}
IOS_GOOGLE_APPLICATION_CREDENTIALS_BASE64: ${{ secrets.IOS_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}
run: |
gem install bundler
cd examples/mobile/ios && bundle install
bundle exec fastlane build_and_deploy_to_firebase --env enterprise build_number:$GITHUB_RUN_NUMBER
Build-And-Deploy-To-TestFlight-InternalTest:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: macos-12
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install modules
run: yarn install
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.1.2
- name: Assign internal environment
env:
# `INTERNAL_RELEASE_TOKEN_URLS` are used just in Internal Test Builds only.
# Writes Test Server URL's into the source files which on runtime is used for fetching test Access Token's in the App.
# Targeted users for the build - Business stakeholders within the Organisation
INTERNAL_RELEASE_TOKEN_URLS: ${{secrets.INTERNAL_RELEASE_TOKEN_URLS}}
run: |
echo $INTERNAL_RELEASE_TOKEN_URLS > packages/mobile/src/providers/TokenUrl.tsx
- name: Build App and Upload to Appstore
env:
IOS_TEMP_KEYCHAIN_NAME: ${{ secrets.IOS_TEMP_KEYCHAIN_NAME_APPSTORE }}
IOS_TEMP_KEYCHAIN_PASSWORD: ${{ secrets.IOS_TEMP_KEYCHAIN_PASSWORD_APPSTORE }}
IOS_CERTIFICATE_BASE64: ${{ secrets.IOS_CERTIFICATE_BASE64_APPSTORE }}
IOS_P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD_APPSTORE }}
IOS_PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_PROVISIONING_PROFILE_BASE64_APPSTORE_INTERNAL }}
IOS_EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.IOS_EXPORT_OPTIONS_PLIST_BASE64_APPSTORE_INTERNAL }}
IOS_APPSTORE_CONNECT_KEY_ID: ${{ secrets.IOS_APPSTORE_CONNECT_KEY_ID }}
IOS_APPSTORE_CONNECT_ISSUER_ID: ${{ secrets.IOS_APPSTORE_CONNECT_ISSUER_ID }}
IOS_APPSTORE_CONNECT_KEY_CONTENT: ${{ secrets.IOS_APPSTORE_CONNECT_KEY_CONTENT }}
run: |
gem install bundler
cd examples/mobile/ios && bundle install
bundle exec fastlane build_and_deploy_to_appstore --env appstoreInternal build_number:$GITHUB_RUN_NUMBER
Build-And-Deploy-To-Appstore:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: macos-12
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install modules
run: yarn install
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.1.2
- name: Build App and Upload to Appstore
env:
IOS_TEMP_KEYCHAIN_NAME: ${{ secrets.IOS_TEMP_KEYCHAIN_NAME_APPSTORE }}
IOS_TEMP_KEYCHAIN_PASSWORD: ${{ secrets.IOS_TEMP_KEYCHAIN_PASSWORD_APPSTORE }}
IOS_CERTIFICATE_BASE64: ${{ secrets.IOS_CERTIFICATE_BASE64_APPSTORE }}
IOS_P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD_APPSTORE }}
IOS_PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_PROVISIONING_PROFILE_BASE64_APPSTORE }}
IOS_EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.IOS_EXPORT_OPTIONS_PLIST_BASE64_APPSTORE }}
IOS_APPSTORE_CONNECT_KEY_ID: ${{ secrets.IOS_APPSTORE_CONNECT_KEY_ID }}
IOS_APPSTORE_CONNECT_ISSUER_ID: ${{ secrets.IOS_APPSTORE_CONNECT_ISSUER_ID }}
IOS_APPSTORE_CONNECT_KEY_CONTENT: ${{ secrets.IOS_APPSTORE_CONNECT_KEY_CONTENT }}
run: |
gem install bundler
cd examples/mobile/ios && bundle install
bundle exec fastlane build_and_deploy_to_appstore --env appstore build_number:$GITHUB_RUN_NUMBER