The Appstage CLI gem provides an easy integration method for pushing builds from CI up to your project live builds page.
To install the gem:-
gem install appstage
To see the command line options:-
$ appstage
Usage: appstage <command> [options]
Commands:-
-u, --upload [PATTERN] Upload a file to the live build release
-d, --delete [PATTERN] Delete a file to the live build release
-l, --list [PATTERN] Lists files the live build release
-v, --version Display the gem version
--help Show this help message
Options:-
-j, --jwttoken JWT Your appstage.io account JWT token
-p, --project_id ID Your appstage.io project id
-h, --host HOSTURL The appstage host, optional, leave blank to use live server
# Delete current live apks
appstage -d .apk -j $APPSTAGE_JWT
# Upload new build files
FILES="*.apk"
for f in $FILES
do
appstage -u "$f" -j $APPSTAGE_JWT
done