Skip to content

Commit fabbc92

Browse files
committed
When executing publishPlugin, release to default channel using semantic versioning.
1 parent 303ace8 commit fabbc92

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
5252
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
5353
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
54-
run: ./gradlew publishPlugin
54+
run: ./gradlew publishPlugin -Pversion=${{ github.event.release.tag_name }}
5555

5656
# Upload artifact as a release asset
5757
- name: Upload Release Asset

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ intellijPlatform {
139139

140140
publishing {
141141
token = providers.environmentVariable("PUBLISH_TOKEN")
142-
channels =
143-
providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
142+
version =
143+
providers.gradleProperty("pluginVersion").map { it.substringBefore('-', "") }
144+
channels = listOf("default")
144145
}
145146

146147
pluginVerification {

0 commit comments

Comments
 (0)