diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index b685dfd25cbe5..36ec915a134e0 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -154,19 +154,14 @@ if [[ "$1" == "finalize" ]]; then rm -rf svn-spark echo "PySpark uploaded" - # download the docs from the dev directory and upload it to spark-website - echo "Uploading docs to spark-website" + # Download the generated docs, then publish them with the website updates below. + echo "Preparing spark-website" svn co "$RELEASE_STAGING_LOCATION/$RELEASE_TAG-docs" docs git clone "https://$ASF_USERNAME:$ASF_PASSWORD@gitbox.apache.org/repos/asf/spark-website.git" -b asf-site mv docs/_site "spark-website/site/docs/$RELEASE_VERSION" cd spark-website - git add site/docs/$RELEASE_VERSION - git commit -m "Add docs for Apache Spark $RELEASE_VERSION" - cd .. - echo "docs committed for later upload" - echo "Uploading release docs to spark-website" - cd spark-website + echo "Updating spark-website for the release" # 1. Add download link to documentation.md python3 <