Skip to content

Migrate azure/notebooks/Azure-MNMG-XGBoost.ipynb to deployment docs #552

Migrate azure/notebooks/Azure-MNMG-XGBoost.ipynb to deployment docs

Migrate azure/notebooks/Azure-MNMG-XGBoost.ipynb to deployment docs #552

name: Build and deploy
on:
push:
tags:
- "*"
branches:
- main
pull_request:
# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}
permissions:
id-token: write
contents: read
jobs:
conda:
name: Build (and deploy)
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
use-mamba: true
activate-environment: deployment-docs-dev
environment-file: conda/environments/deployment_docs.yml
- name: Build
env:
DEPLOYMENT_DOCS_BUILD_STABLE: ${{ startsWith(github.event.ref, 'refs/tags/') && 'true' || 'false' }}
run: make dirhtml SPHINXOPTS="-W --keep-going -n"
- uses: aws-actions/configure-aws-credentials@v1-node16
if: ${{ github.repository == 'rapidsai/deployment' && github.event_name == 'push' }}
with:
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
aws-region: ${{ vars.AWS_REGION }}
role-duration-seconds: 3600 # 1h
- name: Sync HTML files to S3
if: ${{ github.repository == 'rapidsai/deployment' && github.event_name == 'push' }}
env:
DESTINATION_DIR: ${{ startsWith(github.event.ref, 'refs/tags/') && 'stable' || 'nightly' }}
run: aws s3 sync --no-progress --delete build/dirhtml "s3://rapidsai-docs/deployment/${DESTINATION_DIR}/html"