How we ship GitHub Mobile every week
GitHub Mobile ships weekly iOS and Android releases using a single GitHub Actions workflow that runs every Saturday. It runs four jobs: create a release branch, then build, test, archive and upload to TestFlight via fastlane. It also opens a tracking issue that serves as a release playbook, assigned to the on-call release captain fetched from PagerDuty. The remaining jobs open PRs for raw changelogs (turned into human-written release notes) and for bumping the version number on main. On Monday the captain follows the issue checklist to ship to beta. Hotfixes are cherry-picked into the release branch, which triggers automated rebuilds, and the App Store release goes out after a week of clean beta metrics.
Related posts
- Building GitHub with Ruby and Rails
GitHub Engineering mediumAdeptGitHub's ~2M-line Rails monolith upgrades to the latest Rails main-branch commit every week via a scheduled GitHub Actions workflow that opens an automated PR, runs all builds, and ships the next day. CI also runs a parallel build against the latest Ruby commit, which let GitHub test Ruby 3.2 release candidates on production traffic, catch regressions such as a keyword-argument allocation increase before release, and adopt Ruby 3.2.1 on release day. Benefits include dropping nearly all Rails patches, avoiding big-bang migrations, and better security posture. The approach depends on a thorough test suite and progressive rollout deploys.
- Tophat: Crafting a Delightful Mobile Developer Experience
Shopify Engineering mediumAdeptShopify built Tophat, a macOS menu bar app that installs CI-built iOS and Android artifacts from GitHub PRs onto simulators, emulators or real devices with one click, eliminating local branch switching and compilation during manual PR testing ("tophatting"). A lightweight local HTTP server receives links posted by a CI bot pointing at GCS-stored artifacts, and installation steps run in parallel. For real iOS devices it bundles ios-deploy to reach the private MobileDevice.framework, and it signs builds in CI with an Apple Development certificate managed by Fastlane match rather than relying on fragile, undocumented Apple Developer Portal APIs. Zero-setup rollout via the internal Dev tool, a tophatctl CLI and Shipit Mobile integration makes it available to every mobile project by default.
- Enabling branch deployments through IssueOps with GitHub Actions
GitHub Engineering mediumAdeptGitHub's branch-deploy Action brings the branch deploy model to any repository through IssueOps: comment commands like `.deploy` or `.deploy noop` on a pull request trigger a GitHub Actions workflow that deploys the branch before it is merged. Because changes are deployed and validated before merging, `main` stays stable and rollback means simply redeploying `main`. A sample workflow shows how the action's `continue`, `noop` and `ref` outputs gate deployment steps. The action also respects branch protection, supports deploy locks and configurable environments, and GitHub and npm use it internally, mainly for Terraform infrastructure repos where ChatOps isn't available.
- Using GitHub Actions with Heroku Flow for additional Security Control
Heroku Engineering mediumAdeptBecause GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.
- Using Github Actions with Railway
Railway mediumAdeptRailway deployments can be driven from GitHub Actions instead of the built-in branch-push trigger by creating a project token, storing it as a repository secret (RAILWAY_TOKEN), and running `railway up --service=<id>` inside the official Railway CLI container. A sample workflow triggers on pushes to main, checks out the code and uploads it to Railway. The token must stay secret, but the service ID can be passed openly. The same token approach also works for tasks like running database migrations before deploy or managing pull requests.