From 8020ac051452aea9e52d86a96ed60bc11ecada9a Mon Sep 17 00:00:00 2001 From: Jeremiah Zucker Date: Fri, 20 Jan 2023 18:14:32 -0500 Subject: [PATCH] Publish to Maven Central before the docs (#129) --- scripts/release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index f8158ec60..3f534586c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -29,6 +29,9 @@ bazel build --config=release //:PlayerUI_Podspec //:PlayerUI_Pod # VScode extension publishing bazel run --config=release //language/vscode-player-syntax:vscode-plugin.publish +# Maven Central publishing +bazel run @rules_player//distribution:staged-maven-deploy -- "$RELEASE_TYPE" --package-group=com.intuit.player --legacy + # Running this here because it will still have the pre-release version in the VERSION file before auto cleans it up # Make sure to re-stamp the outputs with the BASE_PATH so nextjs knows what to do with links if [ "$RELEASE_TYPE" == "snapshot" ] && [ "$CURRENT_BRANCH" == "main" ]; then @@ -42,5 +45,3 @@ if [ "$RELEASE_TYPE" == "release" ]; then SEMVER_MAJOR=$(cat VERSION | cut -d. -f1) STABLE_DOCS_BASE_PATH=$SEMVER_MAJOR bazel run --config=release //docs:deploy_docs -- --dest_dir "v$SEMVER_MAJOR" fi - -bazel run @rules_player//distribution:staged-maven-deploy -- "$RELEASE_TYPE" --package-group=com.intuit.player --legacy