Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Ship your iPhone and Android app with one git push: fastlane on GitHub Actions

The short version

GitHub gives you free cloud computers called runners. One small workflow file in your repo tells them to run your fastlane lanes every time you push. The iPhone job runs on a Mac runner (macos-latest, a real Apple silicon M1 machine), the Android job runs on a Linux runner (ubuntu-latest), and your keys sit in GitHub secrets. No laptop left on overnight, no dragging builds into Xcode.

This page assumes you already have fastlane lanes that work on your own machine (a beta lane for iPhone, an internal lane for Android). If you do not, set those up first; the workflow only runs them.

Sources: fastlane CI on GitHub, fastlane Android beta deployment, GitHub-hosted runners, Actions billing.

Job Runner label What it is Ends on
iPhone macos-latest macOS 3-core (M1), arm64 TestFlight (upload_to_testflight)
Android ubuntu-latest Linux 4-core, x64 Google Play (upload_to_play_store)

What it costs

Your repo Runner cost
Public Standard GitHub-hosted runners are free and unlimited
Private, GitHub Free plan $12 of runner time a month is included. A Mac minute (M1) is $0.062, so about 190 Mac minutes

Check the current numbers before you rely on them: they are on GitHub's billing and runner pricing pages.

Copy this workflow

Save it as .github/workflows/ship.yml. It builds on every push to main, one job per platform.

name: ship
on:
  push:
    branches: [main]

jobs:
  ios-beta:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.4'
          bundler-cache: true
      - run: bundle exec fastlane beta
        env:
          MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
          APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}

  android-internal:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.4'
          bundler-cache: true
      - run: bundle exec fastlane internal
        env:
          ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
          PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}

The names on the left of each env: line are yours to choose. Your Fastfile reads them with ENV["..."].

The 4 secrets

Add them in your repo under Settings, Secrets and variables, Actions. Never paste a value into a file or a chat.

Secret What it is Used by
APP_STORE_CONNECT_API_KEY Your App Store Connect API key (the .p8 contents plus its key ID and issuer ID) iPhone job, to upload to TestFlight
MATCH_PASSWORD The passphrase that decrypts your signing certificates stored by fastlane match iPhone job, to sign the build
ANDROID_KEYSTORE_BASE64 Your Android upload keystore, base64-encoded, so it fits in a secret Android job, to sign the bundle
PLAY_SERVICE_ACCOUNT_JSON The Google Play service-account JSON key Android job, to upload to Google Play

The line that stops your build from freezing

On a fresh runner there is no keychain for fastlane to sign with, and without one the build can freeze and never finish. fastlane's setup_ci creates a temporary keychain. Put it first in your iPhone lane:

lane :beta do
  setup_ci if ENV['CI']
  match(type: "appstore", readonly: true)
  build_app(scheme: "YourApp")
  upload_to_testflight(skip_waiting_for_build_processing: true)
end

Copy these prompts

Paste them into Claude Code (or any AI that can see your project). None of them need your keys.

1. Write my workflow

Look at my project and my Fastfile. Write .github/workflows/ship.yml with two jobs: ios-beta on macos-latest that runs my iOS beta lane, and android-internal on ubuntu-latest that runs my Android internal lane. Read the environment variables my Fastfile expects and list them as GitHub secrets I have to add. Do not put any value in a file.

2. Check my iPhone lane for the freeze

Read my Fastfile and tell me if my iOS lane calls setup_ci before match and build_app. If it does not, add it behind an `if ENV['CI']` check, and explain in one sentence what it fixes.

3. Estimate my minutes

Based on how long my iOS build takes on my own Mac, estimate how many Mac runner minutes one push uses, and how many pushes a month fit in about 190 Mac minutes (GitHub Free's $12 at $0.062 a minute). Tell me which pushes could skip the iPhone job.

If you are building this on your own app

Run this on your codebase

Audit my release setup against this guide: do I have fastlane lanes for both platforms, a workflow with one job per platform on the right runner, my four secrets named in the workflow (and no values anywhere in the repo), and setup_ci in the iPhone lane? Give me a short checklist of what is done and what is missing.

Get the next one in your inbox