Skip to content

Commit

Permalink
Fix create draft release (#427)
Browse files Browse the repository at this point in the history
* Fix bash variable access in Create Release Draft step.

* Fix channels assignment in publishPlugin task.

* Remove Gradle Kotlin DSL Lazy Property Assignment because it's default now

* Changelog update - v1.11.3

* Remove Gradle Kotlin DSL Lazy Property Assignment from the main `gradle.properties` file

* CHANGELOG update

* Adjust obtaining the value for `publishPlugin.channels` property.

* CHANGELOG update

---------

Co-authored-by: kotlinisland <asdf>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Jakub Chrzanowski <[email protected]>
  • Loading branch information
3 people committed Feb 20, 2024
1 parent 9f4051c commit de86d6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ needs.build.outputs.version }} \
gh release create "v${{ needs.build.outputs.version }}" \
--draft \
--title "v${{ needs.build.outputs.version }}" \
--notes "$(cat << 'EOM'
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

## [Unreleased]

### Fixed

- Adjusted obtaining the value for `publishPlugin.channels` property in `build.gradle.kts`
- Fixed bash variable access in the Create Release Draft step.

### Removed

- Remove Gradle Kotlin DSL Lazy Property Assignment because it's default now
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ tasks {
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels = properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.').first()) }
channels = properties("pluginVersion").map { listOf(it.substringAfter('-').substringBefore('.').ifEmpty { "default" }) }
}
}

0 comments on commit de86d6b

Please sign in to comment.