From 0958ff1050da8b05233280b1fe7babed7dfc8360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BE=D0=B1=D0=BE=D0=BB=D0=B5=D0=B2=20=D0=92=D0=B0?= =?UTF-8?q?=D1=81=D0=B8=D0=BB=D0=B8=D0=B9?= Date: Wed, 29 Jul 2026 16:27:05 +0300 Subject: [PATCH] Extract GitHub Release creation to separate job after publishing --- .github/workflows/main.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0108156..f466f95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -135,14 +135,6 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: ./gradlew publishPlugins - - name: Create GitHub Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release create ${{ github.ref_name }} \ - --title "${{ github.ref_name }}" \ - --generate-notes - publish-maven-central: name: Publish to Maven Central runs-on: ubuntu-latest @@ -188,3 +180,22 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: ./gradlew publishToMavenCentral + + create-release: + name: Create GitHub Release + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + needs: [publish-gradle-portal, publish-maven-central] + steps: + - name: Checkout repository + uses: actions/checkout@v7 + with: + fetch-depth: 0 + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ github.ref_name }} \ + --title "${{ github.ref_name }}" \ + --generate-notes