Upload artefacts to App Center by GitHub Action.
Inspired by wzieba/AppCeter-Github-Action, without limitation of executing on runners with a Linux operating system.
name: Build and publish to App Center
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
- name: Build release
run: ./gradlew assembleRelease
- name: Upload artefact to App Center
uses: tomisacat/AppCenterAction@main # not published to marketplace yet
with:
appName: tomisacat/Sample-App
token: ${{ secrets.APP_CENTER_TOKEN }}
group: Testers
file: /path/to/app/build/outputs/apk/release/app-apk-name.apk
notifyTesters: true
debug: false
Required username followed by App name e.g. wzieba/Sample-App
Required Upload token - you can get one from appcenter.ms/settings
Required Distribution group (or multiple groups split by ; delimiter)
Required Artifact to upload (.apk or .ipa)
Build version parameter required for .zip, .msi, .pkg and .dmg files
Build number parameter required for macOS .pkg and .dmg files
Release notes visible on release page
Generate release notes based on the latest git commit
If set to true, an email notification is sent to the distribution group
If set to true, shows useful debug information from the action execution.