| #!/bin/bash | |
| git_branch=`git rev-parse --abbrev-ref HEAD` | |
| if [ "$git_branch" != "master" ]; then | |
| echo "You must run this from master!" | |
| exit 1 | |
| fi | |
| ./gradlew clean lottie:assembleRelease lottie-compose:assembleRelease lottie:publish lottie-compose:publish -DORG_GRADLE_PROJECT_mavenCentralUsername="${SONATYPE_USERNAME}" -DORG_GRADLE_PROJECT_mavenCentralPassword="${SONATYPE_PASSWORD}" --rerun-tasks --no-parallel --no-configuration-cache |