diff --git a/docs/_utils/deploy.sh b/docs/_utils/deploy.sh new file mode 100755 index 00000000000..61ad818999c --- /dev/null +++ b/docs/_utils/deploy.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Copy contents +mkdir gh-pages +cp -r ./docs/_build/dirhtml/. gh-pages + +# Create gh-pages branch +cd gh-pages +git init +git config --local user.email "action@scylladb.com" +git config --local user.name "GitHub Action" +git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" +git checkout -b gh-pages + +# Deploy +git add . +git commit -m "Publish docs" || true +git push origin gh-pages --force \ No newline at end of file diff --git a/docs/_utils/javadoc.sh b/docs/_utils/javadoc.sh index 0c39996f68b..5fadf3954d4 100755 --- a/docs/_utils/javadoc.sh +++ b/docs/_utils/javadoc.sh @@ -14,4 +14,4 @@ fi mvn javadoc:javadoc -T 1C [ -d $OUTPUT_DIR ] && rm -r $OUTPUT_DIR mkdir -p "$OUTPUT_DIR" -mv -f core/target/site/apidocs/* $OUTPUT_DIR +mv -f driver-core/target/site/apidocs/* $OUTPUT_DIR