Skip to content

Change docs ci container to ubuntu latest to ensure make is present #354

Change docs ci container to ubuntu latest to ensure make is present

Change docs ci container to ubuntu latest to ensure make is present #354

Workflow file for this run

name: Build NV-Ingest Documentation
# Trigger for pull requests and pushing to main
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
jobs:
build:
runs-on: linux-large-disk
container:
image: ubuntu:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Install dependencies from docs/requirements.txt
- name: Install mkdocs dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build Sphinx API Docs
run: |
cd docs/sphinx_docs
make html
cd ../../
mv docs/sphinx_docs/build/html docs/docs/user-guide/api_docs
- name: Build MkDocs Site
run: mkdocs build --config-file docs/mkdocs.yml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site