Fix publish-android-snapshot issues
Summary: As expected, this didn't work on the first try. Issues I've fixed: - Actually switch back to snapshots. - Use more widely compatible bash location. - Don't exit (because of `set -e`) if `grep` returns with status 1. Reviewed By: jknoxville Differential Revision: D9556770 fbshipit-source-id: 0900e6498e7fc8e16c941e77927005573ca310d5
This commit is contained in:
committed by
Facebook Github Bot
parent
91b6cf1c6a
commit
db8fa7902c
@@ -1,5 +1,5 @@
|
||||
# POM publishing constants
|
||||
VERSION_NAME=0.6.18
|
||||
VERSION_NAME=0.6.19-SNAPSHOT
|
||||
GROUP=com.facebook.flipper
|
||||
POM_URL=https://github.com/facebook/flipper
|
||||
POM_SCM_URL=https://github.com/facebook/flipper.git
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
||||
IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.properties")"
|
||||
IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.properties" || echo "")"
|
||||
|
||||
if [ "$ANDROID_PUBLISH_KEY" == "" ]; then
|
||||
echo "No encryption key. Skipping snapshot deployment."
|
||||
|
||||
Reference in New Issue
Block a user