xref: /aosp_15_r20/external/volley/publish-snapshot-on-commit.sh (revision a494ed5db247d14ea5602de4a744bb4a531fd3a7)
1set -eu
2
3GITHUB_BRANCH=${GITHUB_REF#refs/heads/}
4
5if [ "$GITHUB_REPOSITORY" == "google/volley" ] && \
6   [ "$GITHUB_EVENT_NAME" == "push" ] && \
7   [ "$GITHUB_BRANCH" == "master" ]; then
8  echo -e "Publishing snapshot build...\n"
9
10  ./gradlew publish
11
12  echo -e "Published snapshot build"
13else
14  echo -e "Not publishing snapshot"
15fi
16