Automated mobile build, test, and deployment with Fastlane
Automates mobile app builds, testing, and deployment using Fastlane for iOS and Android CI/CD pipelines.
npx claudepluginhub a5c-ai/babysitterThis skill inherits all available tools. When active, it can use any tool Claude has access to.
README.mdThis skill provides comprehensive capabilities for mobile CI/CD automation using Fastlane. It enables automated builds, testing, code signing, beta distribution, and app store deployments for both iOS and Android platforms.
bash - Execute Fastlane commands, Ruby, and bundlerread - Analyze Fastfile, Appfile, and configuration fileswrite - Generate Fastlane configurations and lanesedit - Update existing Fastlane configurationsglob - Search for Fastlane and CI configuration filesgrep - Search for patterns in CI/CD configurationsFastfile Setup
Appfile Configuration
Match (Code Signing)
Manual Code Signing
iOS Builds
Android Builds
Test Automation
Android Testing
TestFlight
Firebase App Distribution
App Store Connect
Google Play Store
GitHub Actions
Other CI Platforms
This skill integrates with the following processes:
mobile-cicd-fastlane.js - CI/CD pipeline setupautomated-release-management.js - Release automationios-appstore-submission.js - iOS deploymentandroid-playstore-publishing.js - Android deploymentbeta-testing-setup.js - Beta distributionproject-root/
├── fastlane/
│ ├── Fastfile
│ ├── Appfile
│ ├── Matchfile
│ ├── Pluginfile
│ ├── Gymfile
│ ├── Scanfile
│ ├── Deliverfile
│ ├── metadata/
│ │ ├── en-US/
│ │ │ ├── description.txt
│ │ │ ├── keywords.txt
│ │ │ └── release_notes.txt
│ │ └── review_information/
│ └── screenshots/
├── Gemfile
└── Gemfile.lock
# Gemfile
source "https://rubygems.org"
gem "fastlane"
gem "cocoapods" # For iOS
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
# fastlane/Fastfile
default_platform(:ios)
before_all do
ensure_git_status_clean
git_pull
end
platform :ios do
desc "Run tests"
lane :test do
scan(
scheme: "MyApp",
devices: ["iPhone 15 Pro"],
code_coverage: true,
output_directory: "./fastlane/test_output"
)
end
desc "Build and upload to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "MyApp.xcodeproj")
match(type: "appstore", readonly: true)
gym(
scheme: "MyApp",
export_method: "app-store",
output_directory: "./build"
)
pilot(
skip_waiting_for_build_processing: true,
changelog: "Bug fixes and improvements"
)
commit_version_bump(
message: "Bump build number [skip ci]",
xcodeproj: "MyApp.xcodeproj"
)
push_to_git_remote
end
desc "Deploy to App Store"
lane :release do
capture_screenshots
increment_version_number(bump_type: "patch")
increment_build_number
match(type: "appstore", readonly: true)
gym(scheme: "MyApp", export_method: "app-store")
deliver(
submit_for_review: true,
automatic_release: false,
force: true,
precheck_include_in_app_purchases: false
)
end
error do |lane, exception|
slack(
message: "Lane #{lane} failed: #{exception.message}",
success: false
)
end
end
platform :android do
desc "Run tests"
lane :test do
gradle(task: "testDebugUnitTest")
end
desc "Build and upload to Firebase App Distribution"
lane :beta do
gradle(
task: "bundle",
build_type: "Release"
)
firebase_app_distribution(
app: ENV["FIREBASE_APP_ID"],
groups: "internal-testers",
release_notes: "Bug fixes and improvements"
)
end
desc "Deploy to Play Store"
lane :release do
gradle(
task: "bundle",
build_type: "Release"
)
supply(
track: "production",
aab: "./app/build/outputs/bundle/release/app-release.aab",
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true
)
end
end
# fastlane/Matchfile
git_url("git@github.com:organization/certificates.git")
storage_mode("git")
type("appstore")
app_identifier(["com.example.myapp", "com.example.myapp.widget"])
username("developer@example.com")
# For CI environments
readonly(is_ci)
# Platform
platform("ios")
# fastlane/Appfile
# iOS
app_identifier("com.example.myapp")
apple_id("developer@example.com")
team_id("XXXXXXXXXX")
itc_team_id("XXXXXXXXXX")
# Android
json_key_file("./fastlane/play-store-key.json")
package_name("com.example.myapp")
# Environment-specific
for_platform :ios do
for_lane :beta do
app_identifier("com.example.myapp.beta")
end
end
# .github/workflows/ios-deploy.yml
name: iOS Deploy
on:
push:
branches: [main]
tags: ['v*']
jobs:
deploy:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Set up certificates
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_AUTH }}
run: bundle exec fastlane match appstore --readonly
- name: Build and deploy
env:
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY: ${{ secrets.ASC_KEY }}
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
bundle exec fastlane ios release
else
bundle exec fastlane ios beta
fi
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
./build/*.ipa
./fastlane/test_output/
# .github/workflows/android-deploy.yml
name: Android Deploy
on:
push:
branches: [main]
tags: ['v*']
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Decode keystore
run: |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/release.keystore
- name: Create key.properties
run: |
echo "storeFile=release.keystore" >> android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
- name: Create Play Store key
run: echo '${{ secrets.PLAY_STORE_KEY }}' > fastlane/play-store-key.json
- name: Build and deploy
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
bundle exec fastlane android release
else
bundle exec fastlane android beta
fi
app-store-connect - App Store managementgoogle-play-console - Play Store managementmobile-testing - Test automationActivates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.