android13/external/volley/publish-snapshot-on-commit.sh

16 lines
333 B
Bash
Executable File

set -eu
GITHUB_BRANCH=${GITHUB_REF#refs/heads/}
if [ "$GITHUB_REPOSITORY" == "google/volley" ] && \
[ "$GITHUB_EVENT_NAME" == "push" ] && \
[ "$GITHUB_BRANCH" == "master" ]; then
echo -e "Publishing snapshot build...\n"
./gradlew publish
echo -e "Published snapshot build"
else
echo -e "Not publishing snapshot"
fi