Publish your Android app
To begin, create a developer account (it's free), then submit a new app.
Upload your APK
Requirements
When you upload an APK, it must meet the Rootpk Store's requirements:
- A maximum size of 200MB (contact us for a size increase).
- Target Android 13 (API level 33) or higher.
- Build for
arm64-v8a
only (see how to configure your build for multiple APKs).
We might support Android App Bundle (AAB) in the future.
Manual upload
- macOS
- Windows
curl https://api.rootpk.com/apk/upload \
-F appId=YOUR_APP_ID \
-F secretKey=YOUR_APP_SECRET_KEY \
-F file=@path/to/example.apk
Command Prompt
curl https://api.rootpk.com/apk/upload ^
-F appId=YOUR_APP_ID ^
-F secretKey=YOUR_APP_SECRET_KEY ^
-F file=@path\to\example.apk
PowerShell
curl https://api.rootpk.com/apk/upload `
-F appId=YOUR_APP_ID `
-F secretKey=YOUR_APP_SECRET_KEY `
-F file=@path\to\example.apk
The @
character after file=
is mandatory.
Automatic upload using GitHub Actions
Follow these steps to automate the process of uploading an APK using GitHub Actions:
Step 1 - Setup the GitHub Action in your repository
name: Upload APK to the Rootpk Store
on:
release:
types: [published]
jobs:
upload:
name: Upload
runs-on: ubuntu-latest
steps:
- name: Download release assets
uses: robinraju/release-downloader@efa4cd07bd0195e6cc65e9e30c251b49ce4d3e51 # v1.8
with:
repository: "{owner}/{repo}" # Replace with your repository's owner and name
latest: true
fileName: "myapp-arm64-v8a-release.apk" # Replace with your APK's filename
out-file-path: "assets"
#token: ${{ secrets.GITHUB_TOKEN }} # Required if your repo is private
- name: Upload APK to the Rootpk Store
working-directory: ./assets/
env:
ROOTPK_APP_ID: ${{ secrets.ROOTPK_APP_ID }}
ROOTPK_APP_SECRET_KEY: ${{ secrets.ROOTPK_APP_SECRET_KEY }}
run: |
curl https://api.rootpk.com/apk/upload \
-F appId="$ROOTPK_APP_ID" \
-F secretKey="$ROOTPK_APP_SECRET_KEY" \
-F file=@myapp-arm64-v8a-release.apk # Make sure this matches your APK's filename
The @
character after file=
is mandatory.
GitHub automatically creates a GITHUB_TOKEN secret for you to use in your workflow, so you don't need to set it up manually.
Step 2 - Configure the repository secrets
Create two repository secrets: ROOTPK_APP_ID
and ROOTPK_APP_SECRET_KEY
. You can follow the GitHub documentation on creating encrypted secrets for a repository to set them up.
Step 3 - Create a release
Create a release by following the GitHub documentation on creating a release. Remember to attach your APK with the release.
After clicking "Publish release," the workflow will be triggered, and your APK should be automatically uploaded to the Rootpk Store. 🎉