GH Actions release + Changelog integration (#4)

pull/5/head
Jakub Chrzanowski 4 years ago committed by GitHub
parent 67df09b137
commit aaba297ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save