Skip to content

deploy from test branch #49

deploy from test branch

deploy from test branch #49

Workflow file for this run

name: Interactive Player RN - iOS and tvOS Build and Distribution
on:
push:
branches:
- ci/update-deployment-scripts
tags:
- '*'
workflow_dispatch:
jobs:
Build-And-Deploy-iOS-App-To-Appstore:
runs-on: macos-13
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install modules
run: yarn install
- name: Create internal environment
env:
ENV: ${{secrets.ENV}}
run: |
echo $ENV > .env
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Setup Bundler
env:
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.MILLICAST_PODS_PERSONAL_ACCESS_TOKEN }}
run: |
cd ios
gem install bundler
bundle install
bundle exec pod install
- name: Build iOS App and Upload to Appstore
env:
TEMP_KEYCHAIN_NAME: ${{ secrets.TEMP_KEYCHAIN_NAME_APPSTORE }}
TEMP_KEYCHAIN_PASSWORD: ${{ secrets.TEMP_KEYCHAIN_PASSWORD_APPSTORE }}
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64_APPSTORE }}
P12_PASSWORD: ${{ secrets.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 ios
bundle exec fastlane build_and_deploy_to_appstore --env testapp-ios-appstore build_number:$GITHUB_RUN_NUMBER
- name: Build tvOS App and Upload to Appstore
env:
TEMP_KEYCHAIN_NAME: ${{ secrets.TEMP_KEYCHAIN_NAME_APPSTORE }}
TEMP_KEYCHAIN_PASSWORD: ${{ secrets.TEMP_KEYCHAIN_PASSWORD_APPSTORE }}
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64_APPSTORE }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD_APPSTORE }}
PROVISIONING_PROFILE_BASE64: ${{ secrets.TVOS_INTERACTIVE_PLAYER_PROFILE_BASE64_APPSTORE }}
EXPORT_OPTIONS_PLIST_BASE64: ${{ secrets.TVOS_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 ios
bundle exec fastlane build_and_deploy_to_appstore --env testapp-tvos-appstore build_number:$GITHUB_RUN_NUMBER
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v3
with:
name: build_artifacts_appstore
path: |
ios/artifacts
retention-days: 60