Skip to content

Update uploadTestflight.yml #23

Update uploadTestflight.yml

Update uploadTestflight.yml #23

name: uploadTestFlight
on:
push:
branches: [ "develop" ]
jobs:
build:
runs-on: macos-latest
steps:
# Checkout the code from the repository
- uses: actions/checkout@v2
# Setup the specific Xcode version required
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.0-beta
# Install Mise tool (ensure it's properly set up)
- name: Install Mise
run: curl https://mise.run | sh
# Install Tuist using the new installation method
- name: Install Tuist
run: curl -Ls https://install.tuist.io | bash
# Use Mise to install a specific version of Tuist
- name: Install Specific Tuist Version
run: mise install [email protected]
# Use the installed Tuist version globally
- name: Use Specific Tuist Version Globally
run: mise use -g [email protected]
# Install Fastlane using Homebrew
- name: Install Fastlane
run: brew install fastlane
# Setup Ruby environment with the specified version
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
# Verify available schemes in the workspace
- name: Execute Tuist tasks
run: |
tuist clean
tuist install
tuist generate
working-directory: ./OPeace
# Run Fastlane with the specified environment variables for deployment
- name: Run Fastlane QA
run: bundle exec fastlane QA # Use bundle exec to ensure correct Ruby environment
working-directory: ./OPeace
env:
APP_NAME: "OPeace"
SCHEME: "OPeace-QA" # Explicitly specify the scheme as an environment variable
TEAM_ID: ${{ secrets.TEAM_ID }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
SLACK_URL_UPLOAD: ${{ secrets.SLACK_URL_UPLOAD }}