Skip to content

Commit 0ddebfb

Browse files
authored
Update release.yml
1 parent 7107773 commit 0ddebfb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,19 @@ jobs:
2929
java-version: 11
3030
cache: gradle
3131

32+
- name: Export Properties
33+
id: properties
34+
shell: bash
35+
run: |
36+
PROPERTIES="$(./gradlew properties --console=plain -q)"
37+
VERSION="$(echo "$PROPERTIES" | grep "^projectVersion:" | cut -f2- -d ' ')"
38+
echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV
39+
3240
# Publish the plugin to the Marketplace
3341
- name: Publish Plugin
3442
env:
3543
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}
36-
run: ./gradlew publishPlugin
44+
run: ./gradlew publishPlugin -PprojectVersion=$SPP_RELEASE_VERSION
3745

3846
# Upload artifact as a release asset
3947
- name: Upload Release Asset

0 commit comments

Comments
 (0)