mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GH Actions release + Changelog integration (#4)
This commit is contained in:
parent
67df09b137
commit
aaba297ffa
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -90,7 +90,12 @@ jobs:
|
||||
run: |
|
||||
echo "::set-output name=version::$(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')"
|
||||
echo "::set-output name=name::$(./gradlew properties --no-daemon --console=plain -q | grep "^name:" | awk '{printf $2}')"
|
||||
echo "::set-output name=changelog::$(./gradlew getChangelog --no-daemon --console=plain -q)"
|
||||
|
||||
CHANGELOG=$(./gradlew getChangelog --no-daemon --unreleased --no-header --console=plain -q)
|
||||
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
||||
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
||||
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
||||
echo "::set-output name=changelog::$CHANGELOG"
|
||||
# Build artifact using buildPlugin Gradle task
|
||||
- name: Build Plugin
|
||||
run: ./gradlew buildPlugin --no-daemon
|
||||
@ -134,7 +139,7 @@ jobs:
|
||||
# If accepted and published, release workflow would be triggered.
|
||||
releaseDraft:
|
||||
name: Release Draft
|
||||
# if: github.ref == 'refs/heads/master'
|
||||
if: github.ref == 'refs/heads/master'
|
||||
needs: [build, verify]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -10,7 +10,7 @@ plugins {
|
||||
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
|
||||
id("org.jetbrains.intellij") version "0.4.21"
|
||||
// gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
|
||||
id("org.jetbrains.changelog") version "0.3.0"
|
||||
id("org.jetbrains.changelog") version "0.3.1"
|
||||
// detekt linter - read more: https://detekt.github.io/detekt/kotlindsl.html
|
||||
id("io.gitlab.arturbosch.detekt") version "1.10.0-RC1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user