Once a project releases cleanly from your machine, the next step is usually to move the upload into CI so a tag produces a TestFlight build and a Play internal release. This guide covers what appship can do in GitHub Actions (or any other CI), what it cannot, and a workflow you can adapt.
Status: appship v0.3.0 is early. The commands are covered by tests and dry runs, but they have not yet been run against the live stores, and the CI setup described here, including
appship signing import --keychainon a macOS runner, is listed as untested in the roadmap. Run it with--dry-runfirst and keep a human approval in front of anything that submits.
What can run on CI, and what cannot
appship talks to the stores with two kinds of keys: an App Store Connect API key for iOS and a Google Play service account JSON for Android. Neither needs a person at the keyboard, so every command built on them can run on a runner. The Apple ID is different: Apple asks for two-factor authentication, and a runner cannot answer that prompt.
| Task | On CI? | Why |
|---|---|---|
doctor, build, upload, metadata push, status | Yes | API key or service account only |
submit (iOS App Review, Android promote to production) | Yes, behind an approval | API key or service account only |
promote (Android tracks and rollout) | Yes | Service account only |
first-release --create-app (create the iOS app record) | No | Needs the Apple ID with 2FA |
| Uploading App Privacy answers | No | Needs the Apple ID with 2FA |
Do the Apple ID steps once on your own machine, as described in the first release guide, and let CI handle the releases after that. iOS builds also need a macOS runner. A Linux runner can only run upload or submit for iOS if the .ipa was built in another job.
Keys come from secrets, never from the repo
For each credential field, appship takes the first value it finds, in this order:
- Environment variables (
APPSHIP_*), which is what CI uses. - The
credentialsblock inrelease/release.yml, which usually points at files inrelease/keys/(gitignored). - A profile in
~/.appship, created withappship credentials add.
On a runner there is no release/keys/ folder and no profile, so the keys arrive as GitHub secrets mapped to these variables:
| Variable | Content |
|---|---|
APPSHIP_ASC_KEY_ID | App Store Connect Key ID |
APPSHIP_ASC_ISSUER_ID | Issuer ID; leave it out for an individual API key |
APPSHIP_ASC_KEY | Content of the .p8, plain or base64 (base64 -i AuthKey_XXX.p8) |
APPSHIP_PLAY_JSON | Content of the service account JSON, plain or base64 |
appship writes APPSHIP_ASC_KEY and APPSHIP_PLAY_JSON to private temporary files (mode 600) and deletes them when the command finishes. If your runner already has the files on disk, use APPSHIP_ASC_KEY_PATH and APPSHIP_PLAY_JSON_PATH instead. Add the secrets under Settings → Secrets and variables → Actions. Signing secrets depend on how you sign: MATCH_PASSWORD and MATCH_GIT_BASIC_AUTHORIZATION for fastlane match, or a base64 .p12 and profile plus APPSHIP_P12_PASSWORD and APPSHIP_KEYCHAIN_PASSWORD when you sign with files from the account owner (see signing without owner access). For Android, a base64 keystore and its passwords.
Key IDs and Issuer IDs are not secret. The .p8, the service account JSON and the keystore are. appship doctor fails if any of them, or anything in release/keys/, is tracked by git. If one slips into a commit, revoke it first; the leaked key steps cover the rest.
Non-interactive mode: --yes, --dry-run and doctor
Commands that write to a store ask for confirmation. With no terminal attached, as on a runner, appship does not wait: it stops with an error telling you to pass --yes. Add --yes to every write command in a workflow so the run does not fail on a prompt.
--dry-run prints the fastlane lane and the data it would send, with passwords masked, and does not call the store. Two details matter in CI:
- A dry run still resolves the keys and checks that they look valid, so the job needs the secrets. GitHub does not pass secrets to workflows triggered from forks, so a dry-run check only works for pull requests from branches in your own repository.
--dry-runcovers the store call, not the build.appship upload --build --dry-runstill runs yourbuild_command, and without--buildan upload dry run needs an existing artifact.
appship doctor checks config, keys, metadata limits, the questionnaire and signing without calling either store, and exits with code 1 on any error. That makes it a good first step in every job. In CI, --skip-artifacts skips the artifact check before the build exists.
A sample workflow
This is based on examples/github-actions.yml in the appship repo. A check job runs on pull requests, pushing a tag such as v1.4.0 builds and uploads both platforms, and the store-facing steps wait for approval in a GitHub environment. It uses one macOS job for both platforms, as the example does. It assumes a Flutter app and fastlane match; swap in your own toolchain and signing steps.
name: release
on:
pull_request:
push:
tags: ["v*"]
workflow_dispatch:
inputs:
rollout:
description: "Android production rollout, e.g. 10%"
default: "10%"
env:
APPSHIP_ASC_KEY_ID: ${{ secrets.APPSHIP_ASC_KEY_ID }}
APPSHIP_ASC_ISSUER_ID: ${{ secrets.APPSHIP_ASC_ISSUER_ID }}
APPSHIP_ASC_KEY: ${{ secrets.APPSHIP_ASC_KEY }}
APPSHIP_PLAY_JSON: ${{ secrets.APPSHIP_PLAY_JSON }}
jobs:
check:
if: github.event_name == 'pull_request'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: brew install fastlane && npm i -g appship-ai
- run: appship doctor --skip-artifacts
- run: appship metadata push --dry-run
upload:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: brew install fastlane && npm i -g appship-ai
- name: Android keystore
run: echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/app/upload.jks
- name: iOS signing
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
run: fastlane match appstore --readonly --app_identifier com.example.app --git_url https://github.com/your-org/certificates.git
- run: appship doctor --skip-artifacts
- run: appship upload --build --yes
submit:
if: github.event_name == 'workflow_dispatch'
runs-on: macos-latest
environment: production # add required reviewers to this environment
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: brew install fastlane && npm i -g appship-ai
- run: appship doctor --skip-artifacts
- run: appship submit --ios --yes
- run: appship submit --android --rollout "${{ inputs.rollout }}" --yes
The example in the repo instead reruns the whole release job on a manual trigger with a submit input, which builds and uploads again before submitting. Splitting submit into its own job avoids the second build. The upload job sends iOS to TestFlight and Android to the track set by android.track in release.yml, internal by default. To pin a fastlane version, use a Gemfile and set APPSHIP_FASTLANE="bundle exec fastlane".
Submit and Android rollout as manual steps
Submitting starts a review that you cannot quietly take back, so keep it behind a person. In the workflow above, the submit job runs only when someone starts it from the Actions tab, and the production environment can require a reviewer to approve before it starts. Set that up under Settings → Environments.
On iOS, appship submit pushes metadata, picks the latest build (or --build-number), answers export compliance and content rights from questionnaire.yml, and sends the version to App Review. On Android, it promotes the release from android.track (or --from) to production, where Google still reviews it. With --rollout 10% the release goes out as a staged rollout. To widen it later, run another approved job:
appship promote --from production --to production --rollout 50% --yes
The same command moves a build between testing tracks, for example --from internal --to alpha. Check where things stand with appship status, which only reads and is a safe first command to try with real keys.
Before you rely on it
None of this has been run for real yet, so treat the first runs as tests. A reasonable order: run appship status locally with the real keys, run the workflow with --dry-run added to the write steps, then let a tag upload to TestFlight and the internal track only. Add the submit job after that path works. If you want an AI coding agent to write the workflow for your project, the integration guide has a ready-made CI prompt, and the CI section lists the same secrets.