From 492e72f9911e0c6ac1ae5b0041cd44d86c02422d Mon Sep 17 00:00:00 2001 From: Jonathan Knight Date: Thu, 23 Jan 2025 03:45:57 -0500 Subject: [PATCH] Fix deploy snapshots script (merge 14.1.2.0 -> ce/14.1.2.0) [git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.2.0/": change = 113726] --- tools/bin/github-deploy-snapshots.sh | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/tools/bin/github-deploy-snapshots.sh b/tools/bin/github-deploy-snapshots.sh index 4516a8d67f095..b56efe43c7516 100755 --- a/tools/bin/github-deploy-snapshots.sh +++ b/tools/bin/github-deploy-snapshots.sh @@ -28,27 +28,3 @@ mvn -B clean install -Dproject.official=true -Pmodules,-coherence,docs -nsu --fi echo "Deploying version ${CURRENT_VERSION}" mvn -B clean deploy -Dproject.official=true -P-modules -nsu --file prj/pom.xml -DskipTests -s .github/maven/settings.xml mvn -B clean deploy -Dproject.official=true -Pmodules,-coherence,docs -nsu --file prj/pom.xml -DskipTests -s .github/maven/settings.xml - -echo "Deploying docs for version ${CURRENT_VERSION}" -git stash save --keep-index --include-untracked || true -git stash drop || true -git checkout gh-pages -git config pull.rebase true -git pull - -rm -rf "${CURRENT_VERSION}" || true -mkdir -p "${CURRENT_VERSION}"/api || true -mv prj/coherence-javadoc/target/javadoc/apidocs "${CURRENT_VERSION}"/api/java -mv prj/docs/target/docs "${CURRENT_VERSION}"/docs -git add -A "${CURRENT_VERSION}"/* - -if [ "${HEAD_BRANCH}" = "master" ]; then - echo "Deploying docs for version ${CURRENT_VERSION} to latest-snapshot" - rm -rf latest-snapshot || true - cp -R "${CURRENT_VERSION}" latest-snapshot - git add -A latest-snapshot/* -fi - -echo "Pushing docs for ${CURRENT_VERSION} to gh-pages" -git commit -m "Update ${CURRENT_VERSION} docs" -git push origin gh-pages