Skip to content

Commit

Permalink
Fix deploy snapshots script
Browse files Browse the repository at this point in the history
(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]
  • Loading branch information
thegridman committed Jan 23, 2025
1 parent 306bf4a commit 492e72f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tools/bin/github-deploy-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 492e72f

Please sign in to comment.