From 46cc715a7c37911ad91aa380784bee9878be20be Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 25 Sep 2025 21:13:53 -0300 Subject: [PATCH 1/2] refactor: run release step only when we publish a new release --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9be2f8a1..1c9ad1d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,8 @@ on: branches: [ master ] pull_request: branches: [ master ] - + release: + types: [published] jobs: validation: @@ -31,8 +32,6 @@ jobs: strategy: fail-fast: false matrix: - # Must upgrade Gradle before we can go past Java 15 here. - # https://docs.gradle.org/current/userguide/compatibility.html java: [ 11, 17 ] steps: - uses: actions/checkout@v4 From 18bb5ae196b592f55ab3a44698a6d1fef0c9af4d Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 25 Sep 2025 21:39:05 -0300 Subject: [PATCH 2/2] refactor: run release step only when we publish a new release, second try --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c9ad1d2..06513894 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,6 @@ on: branches: [ master ] pull_request: branches: [ master ] - release: - types: [published] jobs: validation: @@ -101,6 +99,7 @@ jobs: **/build/reports/* release: + if: github.event_name == 'release' runs-on: ubuntu-22.04 name: Release # It would be nice to run this as part of the build job, since it would be