Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson authored Jun 2, 2022
1 parent 7107773 commit 0ddebfb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ddebfb

Please sign in to comment.