diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 638e617..6cae1ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,20 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 + - name: Export Properties + id: properties + shell: bash + run: | + cat changelog.md + 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<> $GITHUB_OUTPUT + echo "$CHANGELOG" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + - name: Check style run: ./gradlew ktlintCheck @@ -99,7 +113,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create v${{ needs.build.outputs.version }} ${{ github.workspace }}/dist/* \ + gh release create ${{ needs.build.outputs.version }} ${{ github.workspace }}/dist/* \ --draft \ --title "v${{ needs.build.outputs.version }}" \ --notes "$(cat << 'EOM'