|
|
|
|
@ -30,9 +30,6 @@ jobs:
@@ -30,9 +30,6 @@ jobs:
|
|
|
|
|
build: |
|
|
|
|
name: Build |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
outputs: |
|
|
|
|
version: ${{ steps.properties.outputs.version }} |
|
|
|
|
changelog: ${{ steps.properties.outputs.changelog }} |
|
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
# Free GitHub Actions Environment Disk Space |
|
|
|
|
@ -57,20 +54,6 @@ jobs:
@@ -57,20 +54,6 @@ jobs:
|
|
|
|
|
- name: Setup Gradle |
|
|
|
|
uses: gradle/actions/setup-gradle@v4 |
|
|
|
|
|
|
|
|
|
# Set environment variables |
|
|
|
|
- name: Export Properties |
|
|
|
|
id: properties |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
PROPERTIES="$(./gradlew properties --console=plain -q)" |
|
|
|
|
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" |
|
|
|
|
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" |
|
|
|
|
|
|
|
|
|
echo "version=$VERSION" >> $GITHUB_OUTPUT |
|
|
|
|
echo "changelog<<EOF" >> $GITHUB_OUTPUT |
|
|
|
|
echo "$CHANGELOG" >> $GITHUB_OUTPUT |
|
|
|
|
echo "EOF" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
|
|
# Build plugin |
|
|
|
|
- name: Build plugin |
|
|
|
|
run: ./gradlew buildPlugin |
|
|
|
|
@ -253,10 +236,11 @@ jobs:
@@ -253,10 +236,11 @@ jobs:
|
|
|
|
|
env: |
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
run: | |
|
|
|
|
gh release create "v${{ needs.build.outputs.version }}" \ |
|
|
|
|
VERSION=$(./gradlew properties --property version --quiet --console=plain | tail -n 1 | cut -f2- -d ' ') |
|
|
|
|
RELEASE_NOTE="./build/tmp/release_note.txt" |
|
|
|
|
./gradlew getChangelog --unreleased --no-header --quiet --console=plain --output-file=$RELEASE_NOTE |
|
|
|
|
|
|
|
|
|
gh release create $VERSION \ |
|
|
|
|
--draft \ |
|
|
|
|
--title "v${{ needs.build.outputs.version }}" \ |
|
|
|
|
--notes "$(cat << 'EOM' |
|
|
|
|
${{ needs.build.outputs.changelog }} |
|
|
|
|
EOM |
|
|
|
|
)" |
|
|
|
|
--title $VERSION \ |
|
|
|
|
--notes-file $RELEASE_NOTE |
|
|
|
|
|