Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: iOS TestFlight

on:
push:
tags:
- "qa-*"
workflow_dispatch:
pull_request:
types:
- closed
branches:
- develop

env:
SCHEME: DevLog
Expand All @@ -24,12 +25,15 @@ permissions:

jobs:
testflight:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop' && (contains(github.event.pull_request.labels.*.name, 'qa') || contains(github.event.pull_request.labels.*.name, 'qa-local'))
runs-on: macos-latest
timeout-minutes: 45

steps:
- name: Checkout
- name: Checkout merge commit
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}

- name: Install private config files
uses: ./.github/actions/install-private-config
Expand Down Expand Up @@ -74,10 +78,10 @@ jobs:
- name: Build for TestFlight
run: bundle exec fastlane testflight_build_only

- name: Skip TestFlight Upload for Local QA Tag
if: github.event_name == 'push' && startsWith(github.ref_name, 'qa-local-')
run: echo "Skipping TestFlight upload for local QA tag ${GITHUB_REF_NAME}"
- name: Skip TestFlight Upload for Local QA Label
if: contains(github.event.pull_request.labels.*.name, 'qa-local')
run: echo "Skipping TestFlight upload for PR labeled qa-local"

- name: Upload to TestFlight
if: github.event_name != 'push' || !startsWith(github.ref_name, 'qa-local-')
if: contains(github.event.pull_request.labels.*.name, 'qa') && !contains(github.event.pull_request.labels.*.name, 'qa-local')
run: bundle exec fastlane upload_testflight_build