Skip to content

Commit

Permalink
Publish to Maven Central before the docs (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarmanz authored Jan 20, 2023
1 parent fd911d4 commit 8020ac0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8020ac0

Please sign in to comment.