diff --git a/ci/build_docs.sh b/ci/build_docs.sh index f5a7d5a57..9b228b4eb 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -18,22 +18,22 @@ rapids-print-env rapids-logger "Downloading artifacts from previous jobs" CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python) -VERSION_NUMBER="23.08" rapids-mamba-retry install \ --channel "${CPP_CHANNEL}" \ --channel "${PYTHON_CHANNEL}" \ cucim libcucim -# Build Python docs +export RAPIDS_VERSION_NUMBER="23.08" +export RAPIDS_DOCS_DIR="$(mktemp -d)" + rapids-logger "Build Python docs" pushd docs sphinx-build -b dirhtml ./source _html sphinx-build -b text ./source _text +mkdir -p "${RAPIDS_DOCS_DIR}/cucim/"{html,txt} +mv _html/* "${RAPIDS_DOCS_DIR}/cucim/html" +mv _text/* "${RAPIDS_DOCS_DIR}/cucim/txt" popd -if [[ "${RAPIDS_BUILD_TYPE}" != "pull-request" ]]; then - rapids-logger "Upload Docs to S3" - aws s3 sync --no-progress --delete docs/_html "s3://rapidsai-docs/cucim/${VERSION_NUMBER}/html" - aws s3 sync --no-progress --delete docs/_text "s3://rapidsai-docs/cucim/${VERSION_NUMBER}/txt" -fi +rapids-upload-docs diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh index ed13f2f12..e14f389e2 100755 --- a/ci/release/update-version.sh +++ b/ci/release/update-version.sh @@ -48,4 +48,4 @@ sed_runner "s#branch-${CURRENT_MAJOR}.${CURRENT_MINOR}#branch-${NEXT_MAJOR}.${NE for FILE in .github/workflows/*.yaml; do sed_runner "/shared-action-workflows/ s/@.*/@branch-${NEXT_SHORT_TAG}/g" "${FILE}" done -sed_runner "s/VERSION_NUMBER=\".*/VERSION_NUMBER=\"${NEXT_SHORT_TAG}\"/g" ci/build_docs.sh +sed_runner "s/RAPIDS_VERSION_NUMBER=\".*/RAPIDS_VERSION_NUMBER=\"${NEXT_SHORT_TAG}\"/g" ci/build_docs.sh