From 0ddebfb740d29320d41d9bf803ca97fc627393de Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Thu, 2 Jun 2022 22:46:52 +0400 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c373f287..d8e264d0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,11 +29,19 @@ jobs: java-version: 11 cache: gradle + - name: Export Properties + id: properties + shell: bash + run: | + PROPERTIES="$(./gradlew properties --console=plain -q)" + VERSION="$(echo "$PROPERTIES" | grep "^projectVersion:" | cut -f2- -d ' ')" + echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV + # Publish the plugin to the Marketplace - name: Publish Plugin env: PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} - run: ./gradlew publishPlugin + run: ./gradlew publishPlugin -PprojectVersion=$SPP_RELEASE_VERSION # Upload artifact as a release asset - name: Upload Release Asset