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