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