From 789717b94aa3f7e55a382aa1f08a6203eb4398a7 Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Thu, 25 Jun 2026 13:27:27 -0700 Subject: [PATCH] run all builds on the release branch, before tagging (#10017) --- .github/workflows/release.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccf2bcfea..e2af36747 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,10 @@ -# This workflow is main release, needs to be manually tagged & pushed. +# This workflow builds release artifacts for release branches and publishes tagged releases. on: push: paths-ignore: - "documentation/**" + branches: + - "release/*" tags: - "v1.*" @@ -49,8 +51,8 @@ jobs: id-token: write contents: read with: - signing: true - environment: signing + signing: ${{ startsWith(github.ref, 'refs/tags/') }} + environment: ${{ startsWith(github.ref, 'refs/tags/') && 'signing' || '' }} secrets: inherit # ------------------------------------------------------------ @@ -62,8 +64,8 @@ jobs: id-token: write contents: read with: - signing: true - environment: signing + signing: ${{ startsWith(github.ref, 'refs/tags/') }} + environment: ${{ startsWith(github.ref, 'refs/tags/') && 'signing' || '' }} secrets: inherit # ------------------------------------------------------------ @@ -82,7 +84,7 @@ jobs: contents: read actions: read with: - signing: true + signing: ${{ startsWith(github.ref, 'refs/tags/') }} secrets: inherit bundle-desktop-windows-cuda: @@ -92,7 +94,7 @@ jobs: contents: read actions: read with: - signing: true + signing: ${{ startsWith(github.ref, 'refs/tags/') }} windows_variant: cuda secrets: inherit @@ -101,6 +103,7 @@ jobs: # ------------------------------------ release: name: Release + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest needs: [build-cli, install-script, bundle-desktop, bundle-desktop-intel, bundle-desktop-linux, bundle-desktop-windows, bundle-desktop-windows-cuda] permissions: