CircleCI App Distribution, From Job to Install Link
Drop AppShare into your config.yml for CircleCI app distribution without a separate tool: a build ships the moment your workflow reaches that job, with no manual step waiting at the end of the pipeline.
What You Get
Three Reasons Teams Automate This Job
Keeps Pace With a Fast Pipeline
CircleCI is built around quick feedback and caching, adding AppShare as a job doesn't slow that down, it just adds one more thing that happens automatically.
Fits Into an Existing Workflow
If you're already orchestrating multiple jobs with
workflows, the release job slots in as one more step with its own filters and dependencies.Starts From a Clean Environment Every Time
Each job runs in a fresh container or VM, so nothing left over from a previous run can affect the upload.
SETUP
Set Up CircleCI Mobile App Deployment in Four Steps
Push every APK, or handle CircleCI IPA deployment, as one more job in the pipeline you already run.
Open .circleci/config.yml
Find your config file under the .circleci folder.
Set your API key in Environment Variables
In Project Settings → Environment Variables, add APPSHARE_API_KEY.
Add the upload job
Add the upload job to your CircleCI workflow.
Commit & Push
Push your changes to trigger your CircleCI pipeline.
Open .circleci/config.yml
Open .circleci/config.yml at your repository root.
.circleci/config.yml
version: 2.1
jobs:
# Your existing build and test jobsSet your API key in Environment Variables
In CircleCI, go to Project Settings → Environment Variables and create APPSHARE_API_KEY.
CircleCI Environment Variables
Name: APPSHARE_API_KEY
Value:Add the upload job
Add a step in your job that installs the CLI and uploads your mobile package.
.circleci/config.yml
jobs:
upload:
docker:
- image: cimg/node:18.0
steps:
- checkout
- run:
name: Install AppShare CLI
command: npm install -g zunoy-appshare-cli
- run:
name: Upload to AppShare
command: |
export APPSHARE_API_KEY=$APPSHARE_API_KEY
appshare ./build/app-release.apk --app-id my-app-slugCommit & Push
Commit your configuration. CircleCI will build and publish your new release automatically.
Terminal
git add .circleci/config.yml
git commit -m "ci: add AppShare upload job to CircleCI"
git push origin mainLIFECYCLE
What Actually Happens on a Run
UNDER THE HOOD
CircleCI Just Runs the CLI
The job you added is just AppShare CLI, executing inside CircleCI instead of your terminal.

Not Using CircleCI
AppShare Works With Your Pipeline Too
FAQ
Questions About the CircleCI Integration
What is CircleCI app distribution?
CircleCI app distribution means sending every Android or iOS build your CircleCI pipeline produces straight to testers. With AppShare, a release job in .circleci/config.yml installs the AppShare CLI and uploads the .apk or .ipa once your build and test jobs pass. Testers get an install link and QR code without anyone uploading the build by hand.
How does CircleCI iOS deployment work for IPA builds?
CircleCI IPA deployment needs a macOS executor to build and sign the .ipa. Save the file with persist_to_workspace, then have the release job pick it up with attach_workspace. That release job can run on a lightweight Docker executor, since it only installs the CLI and uploads. Ad hoc builds only install on registered UDIDs, so add tester devices first.
What triggers the release job?
Whatever you define under filters in the workflow. A push to a specific branch such as main is the most common, but tags and other conditions work too. Combine filters with requires: so the release job runs only on the branches you choose and only after every job it depends on has passed, never on a broken build.
How do I set up CircleCI mobile app deployment with AppShare?
Open .circleci/config.yml, add a push_to_appshare entry under jobs:, and reference it from your workflows: block. Use requires: so the release job only runs after your build and test jobs succeed, and set your API key in Project Settings first. Commit the file, and the next pipeline that reaches the job uploads the build automatically.
How do I keep my API key out of the config file?
Add it in Project Settings, Environment Variables, or in a Context if several projects should share the same key. Then reference it as an environment variable in your run step instead of writing it into config.yml. CircleCI masks the value in job output, so the key never appears in your repository or your build logs.
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.
Get Started
Add It to Your Next Workflow Run
Add the job, set the variable, and CircleCI takes it from there.
Runs in a clean container every time
Gate it behind test jobs with requires
Works with Docker, machine, or macOS executors