[doc] Reference the R doc in sphinx document site. #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: XGBoost-docs | |
| on: [push, pull_request] | |
| env: | |
| BRANCH_NAME: >- | |
| ${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }} | |
| jobs: | |
| build-r-docs: | |
| name: Build docs for the R package | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=linux-amd64-cpu | |
| - tag=r-tests-build-docs | |
| steps: | |
| # Restart Docker daemon so that it recognizes the ephemeral disks | |
| - run: sudo systemctl restart docker | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| - name: Log into Docker registry (AWS ECR) | |
| run: bash ops/pipeline/login-docker-registry.sh | |
| - run: bash ops/pipeline/build-r-docs.sh | |
| - name: Upload R doc | |
| run: | | |
| python3 ops/pipeline/manage-artifacts.py upload \ | |
| --s3-bucket xgboost-docs \ | |
| --prefix ${BRANCH_NAME}/${PR_COMMIT_SHA} --make-public \ | |
| r-docs-${{ env.BRANCH_NAME }}.tar.bz2 | |
| trigger-rtd-build: | |
| needs: build-r-docs | |
| name: Trigger Read The Docs build. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| python3 ops/pipeline/trigger-rtd.py |