From 3661ad51744e713cf8d2756c6b88a2d06464334a Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Wed, 11 Nov 2026 18:50:11 -0800 Subject: [PATCH 1/2] Dispatch release documentation from the 0.2 branch Send final release events to the publisher on main so future 0.2 releases inherit versioned documentation without backporting tools. Signed-off-by: Trent Nelson --- .github/workflows/release-docs.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/release-docs.yml diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml new file mode 100644 index 00000000..eadbb812 --- /dev/null +++ b/.github/workflows/release-docs.yml @@ -0,0 +1,38 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +# Keep this hook on release branches before tagging. All publisher code lives +# on main; existing tags keep dispatching the compatible docs.yml tag input. +name: release documentation + +on: + release: + types: [published, released] + +permissions: + actions: write + +jobs: + forward: + if: >- + github.repository == 'NVIDIA/cuPhoton' && + !github.event.release.draft && + !github.event.release.prerelease && + github.event.release.published_at != null + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - name: Dispatch the main publisher for a final release + env: + GH_TOKEN: ${{ github.token }} + RELEASE_TAG: ${{ github.event.release.tag_name }} + shell: bash + run: | + # Both initial final publication and prerelease promotion reach here. + # Ignore non-semantic and prerelease tags even if marked final. + if [[ ! "$RELEASE_TAG" =~ ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then + exit 0 + fi + gh workflow run docs.yml --repo "$GITHUB_REPOSITORY" --ref main \ + --field "tag=$RELEASE_TAG" From fe333dc3711f09ca303124c7cbab37772e6e28cd Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Thu, 12 Nov 2026 09:11:50 -0800 Subject: [PATCH 2/2] Forward each final release documentation event once Listen to released for both initial final publication and prerelease promotion. Avoid duplicate publisher dispatches from also subscribing to published. Signed-off-by: Trent Nelson --- .github/workflows/release-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml index eadbb812..dc740df0 100644 --- a/.github/workflows/release-docs.yml +++ b/.github/workflows/release-docs.yml @@ -8,7 +8,8 @@ name: release documentation on: release: - types: [published, released] + # Covers initial final publication and promotion from prerelease. + types: [released] permissions: actions: write