blob: ba02b79b30b70a395693b2117fad3b827e0526a1 [file] [log] [blame]
Anonymouscc4c8692017-08-08 12:42:44 -07001set -eu
2
Anonymous212e7002021-07-07 14:01:06 -07003GITHUB_BRANCH=${GITHUB_REF#refs/heads/}
Anonymouscc4c8692017-08-08 12:42:44 -07004
Anonymous212e7002021-07-07 14:01:06 -07005if [ "$GITHUB_REPOSITORY" == "google/volley" ] && \
6 [ "$GITHUB_EVENT_NAME" == "push" ] && \
7 [ "$GITHUB_BRANCH" == "master" ]; then
8 echo -e "Publishing snapshot build...\n"
Anonymouscc4c8692017-08-08 12:42:44 -07009
Anonymous212e7002021-07-07 14:01:06 -070010 ./gradlew publish
11
12 echo -e "Published snapshot build"
Anonymouscc4c8692017-08-08 12:42:44 -070013else
14 echo -e "Not publishing snapshot"
Anonymous212e7002021-07-07 14:01:06 -070015fi