From c0d96ceee8a575542dff8ee3e3666e7adf3b240c Mon Sep 17 00:00:00 2001 From: Peter Du Date: Wed, 29 Jul 2026 14:14:47 -0700 Subject: [PATCH] publish docs with merge to main --- .github/workflows/docs.yml | 71 +++++++++++++++++++++++++++++++++++ .github/workflows/nightly.yml | 50 ------------------------ 2 files changed, 71 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..ad40828 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,71 @@ +# Copyright (c) 2026, The Isaac AutoData Project Developers. +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +name: Isaac AutoData Docs + +# Publish after updates to main while retaining the existing nightly, manual, and release-tag publication paths. +# Keeping deployment separate prevents documentation updates from launching the full GPU nightly suite. +on: + push: + branches: ["main"] + tags: + - "v*" + schedule: + - cron: "30 3 * * *" + workflow_dispatch: + +concurrency: + group: github-pages + cancel-in-progress: true + +permissions: + contents: read + +jobs: + + publish_docs: + name: Publish docs (GitHub Pages) + runs-on: ubuntu-24.04 + timeout-minutes: 45 + permissions: + pages: write + id-token: write + contents: read + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + fetch-tags: true + submodules: false + lfs: true + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Build docs + run: | + pip install --no-cache-dir -r docs/requirements.txt + make -C docs multi-docs SPHINXOPTS=-W + touch docs/_build/.nojekyll + + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs/_build + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9d4b4d2..1e45d49 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -10,9 +10,6 @@ on: schedule: - cron: "30 3 * * *" workflow_dispatch: - push: - tags: - - "v*" concurrency: group: ${{ github.workflow }} @@ -25,7 +22,6 @@ jobs: test_full: name: Full E2E (GPU, rebuilt image) - if: github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/v') runs-on: [self-hosted, gpu] timeout-minutes: 180 @@ -76,49 +72,3 @@ jobs: path: test-results/ if-no-files-found: warn retention-days: 30 - - publish_docs: - name: Publish docs (GitHub Pages) - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-24.04 - timeout-minutes: 45 - permissions: - pages: write - id-token: write - contents: read - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - fetch-depth: 0 - fetch-tags: true - submodules: false - lfs: true - persist-credentials: false - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Build docs - run: | - pip install --no-cache-dir -r docs/requirements.txt - make -C docs multi-docs SPHINXOPTS=-W - touch docs/_build/.nojekyll - - - name: Configure GitHub Pages - uses: actions/configure-pages@v5 - - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: docs/_build - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4