From 32b806d8c4d91738282605dc3d881851e8a31b9e Mon Sep 17 00:00:00 2001 From: Yauheni Slizh Date: Wed, 8 Apr 2026 00:30:45 +0200 Subject: [PATCH] Add GitHub Release to publish workflow and bump to 1.1.1 Trigger publish on version tags (v*) instead of push to main. Creates a GitHub Release with the plugin ZIP attached for manual installation. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish.yml | 26 +++++++++++++++++++++----- build.gradle.kts | 2 +- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d27b60a..73a3c06 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,14 +2,16 @@ name: Publish Plugin on: push: - branches: - - main + tags: + - 'v*' workflow_dispatch: jobs: publish: - name: Build and Publish Plugin + name: Build, Publish and Release runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -24,10 +26,24 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Build and Publish + - name: Build Plugin + run: ./gradlew buildPlugin + + - name: Publish to JetBrains Marketplace env: CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} - run: ./gradlew publishPlugin \ No newline at end of file + run: ./gradlew publishPlugin + + - name: Extract version from tag + id: version + run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + name: "v${{ steps.version.outputs.version }}" + generate_release_notes: true + files: build/distributions/*.zip \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 79a0c07..0dc37ae 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { id("org.jlleitschuh.gradle.ktlint") version "12.1.2" } -version = "1.1.0" +version = "1.1.1" group = "com.github.kiolk.loggingplugin" repositories {