Skip to content

Interactive Player Build and Distribution #203

Interactive Player Build and Distribution

Interactive Player Build and Distribution #203

name: Interactive Player Build and Distribution
on:
push:
branches:
- 'main'
paths:
- 'interactive-player/**'
tags:
- '*'
workflow_dispatch:
jobs:
Build-And-Deploy-To-Firebase:
runs-on: macos-13
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Build App and Upload to Firebase
env:
FIREBASE_APP_ID: ${{ secrets.IOS_INTERACTIVE_PLAYER_FIREBASE_APP_ID }}
TEMP_KEYCHAIN_NAME: ${{ secrets.IOS_TEMP_KEYCHAIN_NAME_ENTERPRISE }}
TEMP_KEYCHAIN_PASSWORD: ${{ secrets.IOS_TEMP_KEYCHAIN_PASSWORD_ENTERPRISE }}
CERTIFICATE_BASE64: ${{ secrets.IOS_P12_BASE64_ENTERPRISE }}
P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD_ENTERPRISE }}
PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_INTERACTIVE_PLAYER_PROVISIONING_PROFILE_BASE64_ENTERPRISE }}
EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.IOS_INTERACTIVE_PLAYER_EXPORT_OPTIONS_PLIST_BASE64_ENTERPRISE }}
GOOGLE_APPLICATION_CREDENTIALS_BASE64: ${{ secrets.IOS_INTERACTIVE_PLAYER_GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}
run: |
cd interactive-player
gem install bundler
bundle install
bundle exec fastlane build_and_deploy_to_firebase --env interactive-player-ios-enterprise build_number:$GITHUB_RUN_NUMBER
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v3
with:
name: build_artifacts_firebase
path: |
interactive-player/artifacts
retention-days: 30
Build-And-Deploy-iOS-App-To-Appstore:
runs-on: macos-13
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Build App and Upload to Appstore
env:
TEMP_KEYCHAIN_NAME: ${{ secrets.IOS_TEMP_KEYCHAIN_NAME_APPSTORE }}
TEMP_KEYCHAIN_PASSWORD: ${{ secrets.IOS_TEMP_KEYCHAIN_PASSWORD_APPSTORE }}
CERTIFICATE_BASE64: ${{ secrets.IOS_CERTIFICATE_BASE64_APPSTORE }}
P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD_APPSTORE }}
PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_INTERACTIVE_PLAYER_PROFILE_BASE64_APPSTORE }}
EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.IOS_INTERACTIVE_PLAYER_EXPORT_OPTIONS_PLIST_BASE64_APPSTORE }}
APPSTORE_CONNECT_KEY_ID: ${{ secrets.APPSTORE_CONNECT_KEY_ID }}
APPSTORE_CONNECT_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_ISSUER_ID }}
APPSTORE_CONNECT_KEY_CONTENT: ${{ secrets.APPSTORE_CONNECT_KEY_CONTENT }}
run: |
cd interactive-player
gem install bundler
bundle install
bundle exec fastlane build_and_deploy_to_appstore --env interactive-player-ios-appstore build_number:$GITHUB_RUN_NUMBER
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v3
with:
name: build_artifacts_appstore
path: |
interactive-player/artifacts
retention-days: 30