[llvm] workflows/release-documentation: Add release environment (PR #181063)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 16:53:57 PST 2026


https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/181063

This way we can limit access to the secrets to the main and release branches.

This is a partial re-commit of b6ee085068972a41f3b2735a9f7e3ca48eab0f00

>From c8a8fdd8ec1aec17de9123f2ceb621315a66d2ac Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 11 Feb 2026 15:55:30 -0800
Subject: [PATCH] workflows/release-documentation: Add release environment

This way we can limit access to the secrets to the main and release
branches.

This is a partial re-commit of b6ee085068972a41f3b2735a9f7e3ca48eab0f00
---
 .github/workflows/release-documentation.yml | 1 +
 .github/workflows/release-tasks.yml         | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index 1d5d1f6bc03fa..3828633ec3921 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -36,6 +36,7 @@ on:
 jobs:
   release-documentation:
     name: Build and Upload Release Documentation
+    environment: release
     runs-on: ubuntu-24.04
     env:
       upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index ce44311507a83..cfa0f9d81dcaa 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -54,10 +54,6 @@ jobs:
     with:
       release-version: ${{ needs.validate-tag.outputs.release-version }}
       upload: true
-    # Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we use.
-    secrets:
-      LLVMBOT_WWW_RELEASES_PUSH: ${{ secrets.LLVMBOT_WWW_RELEASES_PUSH }}
-      WWW_RELEASES_TOKEN: ${{ secrets.WWW_RELEASES_TOKEN }}
 
   release-doxygen:
     name: Build and Upload Release Doxygen



More information about the llvm-commits mailing list