5.2.0
diff --git a/gradle.properties b/gradle.properties
index d9d0256..39919d3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
-VERSION_NAME=5.2.0-SNAPSHOT
+VERSION_NAME=5.2.0
 GROUP=com.airbnb.android
 
 POM_DESCRIPTION=Lottie is an animation library that renders Adobe After Effects animations natively in realtime.
diff --git a/upload_release.sh b/upload_release.sh
index 6c91f9e..aa08990 100755
--- a/upload_release.sh
+++ b/upload_release.sh
@@ -1,2 +1,7 @@
 #!/bin/bash
-./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 newline at end of file
+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
\ No newline at end of file