[#169] Add iOS deploy to root #1
Workflow file for this run
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
name: ios-deploy-to-testflight | ||
on: | ||
# Trigger the workflow on push action | ||
push: | ||
branches: | ||
- develop | ||
- chore/169-mirrored-workflow-ios | ||
jobs: | ||
build_and_upload_to_testflight: | ||
name: Build And Upload iOS Application To TestFlight | ||
runs-on: macOS-latest | ||
timeout-minutes: 30 | ||
env: | ||
TEAM_ID: ${{#mustacheCase}}secrets.TEAM_ID{{/mustacheCase}} | ||
Check failure on line 15 in .github/workflows/ios_deploy_to_testflight.yml GitHub Actions / ios-deploy-to-testflightInvalid workflow file
|
||
FASTLANE_USER: ${{#mustacheCase}}secrets.FASTLANE_USER{{/mustacheCase}} | ||
FASTLANE_PASSWORD: ${{#mustacheCase}}secrets.FASTLANE_PASSWORD{{/mustacheCase}} | ||
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{#mustacheCase}}secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD{{/mustacheCase}} | ||
FASTLANE_SESSION: ${{#mustacheCase}}secrets.FASTLANE_SESSION{{/mustacheCase}} | ||
MATCH_PASSWORD: ${{#mustacheCase}}secrets.MATCH_PASSWORD{{/mustacheCase}} | ||
KEYCHAIN_PASSWORD: ${{#mustacheCase}}secrets.KEYCHAIN_PASSWORD{{/mustacheCase}} | ||
GITHUB_RUN_NUMBER: $secrets.GITHUB_RUN_NUMBER | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Install SSH key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{#mustacheCase}}secrets.SSH_PRIVATE_KEY{{/mustacheCase}} | ||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.10.5' | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
- name: Set up Production env | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: | | ||
echo -e ENV_PRODUCTION >> .env | ||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
- name: Bundle install | ||
run: cd ./ios && bundle install | ||
- name: Pod install | ||
run: cd ./ios && pod install | ||
- name: Match AppStore | ||
run: cd ./ios && bundle exec fastlane sync_appstore_staging_signing | ||
- name: Deploy to TestFlight | ||
run: | | ||
cd ./ios && bundle exec fastlane build_and_upload_testflight_app |