Fastlane App Distribution on Every Lane Run
Drop a few lines into your Fastfile for Fastlane app distribution without a separate tool: whichever lane builds your release now pushes it to AppShare too.
What You Get
Three Reasons Teams Automate This Step
Fits an Existing Lane
Add it to the release lane you already run, instead of standing up something new.
Works Anywhere Fastlane Does
Standalone from your terminal, or inside whatever CI is already calling Fastlane, same two lines either way.
No Separate Secrets Setup
Use the same
ENVvariable approach Fastlane already recommends for every other key you're managing.
SETUP
Set Up Fastlane Mobile App Deployment in Four Steps
Upload Android builds and handle Fastlane IPA deployment from the lanes you already run.
Open your Fastfile
Find it in the fastlane/ folder at your project root.
Set your API key in .env
Add APPSHARE_API_KEY to fastlane/.env or set it in your CI environment.
Add the commands to a lane
Add the upload_to_appshare lane to trigger the CLI upload.
Commit & Run
Run your lane locally or push to trigger your CI workflow.
Open your Fastfile
Open fastlane/Fastfile in your repository.
fastlane/Fastfile
default_platform(:android)
platform :android do
# Your existing lanes
endSet your API key in .env
Add APPSHARE_API_KEY to your fastlane/.env file (make sure it is gitignored) or set it as an environment variable in CI.
fastlane/.env
APPSHARE_API_KEY=Add the commands to a lane
Create a dedicated lane or add the shell command after your build action (gradle or gym).
fastlane/Fastfile
lane :upload_to_appshare do
sh("
npm install -g zunoy-appshare-cli
export APPSHARE_API_KEY='#{ENV['APPSHARE_API_KEY']}'
appshare ./build/app-release.apk --app-id my-app-slug
")
endCommit & Run
Run bundle exec fastlane upload_to_appshare or commit your Fastfile to automate it in CI.
Terminal
bundle exec fastlane upload_to_appshareLIFECYCLE
What Actually Happens on a Lane Run
UNDER THE HOOD
Fastlane Just Runs the CLI
Those two lines in the lane are just AppShare CLI, running inside Fastlane instead of your terminal.

Other Platforms
AppShare Works With Your Pipeline Too
FAQ
Questions About the Fastlane Integration
What is Fastlane app distribution?
It means adding AppShare to the Fastlane lanes you already run, so every Android or iOS build they produce goes straight to testers. After your build action finishes, an sh action installs the AppShare CLI and uploads the .apk or .ipa. Testers get an install link and QR code without anyone uploading the build by hand.
How do I keep my API key out of the Fastfile?
Set it as an environment variable, never inside the Fastfile. Locally, put it in fastlane/.env and add that file to .gitignore, since Fastlane loads it automatically. In CI, store it with your provider’s secret or environment settings instead. The AppShare CLI reads the variable at runtime, so the key never appears in your repository.
Can I add release notes automatically?
Not from the pipeline yet. The AppShare CLI uploads the build (appshare <file> --app-id <slug>) and has no release notes flag. Once the upload finishes, add or edit the notes on the release's Release Notes tab in AppShare, and testers see them on the install page.
How do I set up Fastlane mobile app deployment with AppShare?
Open fastlane/Fastfile and add two sh actions to your release lane, after the build action: one installs the AppShare CLI, the other uploads the build. Keep in mind that sh runs from inside the fastlane folder by default, not your project root, so write the build path relative to that folder or pass an absolute path.
Does Fastlane need a specific CI service to run this?
No. The lane runs the same way wherever Fastlane runs: from your own terminal with fastlane release, or from any CI service that already calls Fastlane, such as GitHub Actions, Bitrise, or Jenkins. The AppShare commands inside the lane do not change between environments, so you only set it up once for both local and CI runs.
Is Fastlane integration included on the Free plan?
Yes. CI/CD integration, including Fastlane, is included on every AppShare plan, even Free, so there is nothing extra to unlock. Plan limits still apply to upload size and active apps. The lane does not block manual uploads either, so you can still push a one-off build from the dashboard or the CLI whenever you need to.
Get Started
Two Lines, One Existing Lane
Add the commands, set your key, and your next fastlane release ships the build too.
Runs standalone or inside any CI
Two lines, one existing lane
Works for iOS and Android alike