diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f5f84c158..bed83fca98 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -54,16 +54,19 @@ jobs: sha: ${{ inputs.sha }} skip_upload_pkgs: libraft-template docs-build: - if: github.ref_type == 'branch' && github.event_name == 'push' + if: github.ref_type == 'branch' needs: python-build secrets: inherit uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.06 with: - build_type: branch - node_type: "gpu-v100-latest-1" arch: "amd64" + branch: ${{ inputs.branch }} + build_type: ${{ inputs.build_type || 'branch' }} container_image: "rapidsai/ci:latest" + date: ${{ inputs.date }} + node_type: "gpu-v100-latest-1" run_script: "ci/build_docs.sh" + sha: ${{ inputs.sha }} wheel-build-pylibraft: secrets: inherit uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@branch-23.06 diff --git a/ci/build_docs.sh b/ci/build_docs.sh index e52beb22ea..b1cb993798 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -42,7 +42,7 @@ sphinx-build -b text source _text popd -if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then +if [[ ${RAPIDS_BUILD_TYPE} != "pull-request" ]]; then rapids-logger "Upload Docs to S3" aws s3 sync --no-progress --delete docs/_html "s3://rapidsai-docs/raft/${VERSION_NUMBER}/html" aws s3 sync --no-progress --delete docs/_text "s3://rapidsai-docs/raft/${VERSION_NUMBER}/txt"