GH Actions release + Changelog integration (#4)

This commit is contained in:
Jakub Chrzanowski
2020-06-16 16:12:30 +02:00
committed by GitHub
parent 67df09b137
commit aaba297ffa
2 changed files with 8 additions and 3 deletions

View File

@@ -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: