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