Set the upload key in cirrus when publishing (#22581)

This commit is contained in:
xster
2018-10-02 18:34:20 -07:00
committed by GitHub
parent bfa9822134
commit 9b893b1430

View File

@@ -28,6 +28,12 @@ if [[ "$SHARD" = "deploy_gallery" ]]; then
version="$(<version)"
if [[ "$OS" == "linux" ]]; then
echo "Building Flutter Gallery $version for Android..."
set +x # Don't echo back the below.
if [ -n "$ANDROID_GALLERY_UPLOAD_KEY" ]; then
echo "$ANDROID_GALLERY_UPLOAD_KEY" | base64 --decode > /root/.android/debug.keystore
fi
set -x
# ANDROID_HOME must be set in the env.
(
cd examples/flutter_gallery