This Action for appcenter distribute enables arbitrary actions with the appcenter
command-line client.
args
- Required. This is the arguments you want to use for theappcenter
cli
APPCENTER_ACCESS_TOKEN
- Required. The token to use for authentication. This token can be aquired through theappcenter dashboard
.
To authenticate with AppCenter, and deploy to AppCenter:
name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "*.apk"
- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
# Only runs if all of the files exists
run: echo All files exists!
- name: Install Dependencies
run: npm install npm@latest -g
- name: Distribute to AppCenter
uses: grndvl1/appcenter-distribute-action@master
with:
args: stores publish --file /path/to/file.apk-or-aab --store Production --app yourName/sample-app
env:
APPCENTER_ACCESS_TOKEN: ${{ secrets.APP_CENTER_TOKEN }}
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Thanks to Jeremy Shore for the firebase-action repo.