From a173e74a3c89460fd3c0b217fb0721c7b5b5187a Mon Sep 17 00:00:00 2001 From: Peter Havekes Date: Wed, 30 Sep 2026 09:05:31 +0200 Subject: [PATCH] Create GitHub release with changelog on deploy --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 62f7a2b..f55a255 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,11 +10,14 @@ jobs: deployment: permissions: packages: write + contents: write environment: deploy runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-java@v4 with: @@ -75,6 +78,27 @@ jobs: MAVEN_USERNAME: ${{ secrets.BUILD_USERNAME }} MAVEN_PASSWORD: ${{ secrets.BUILD_PASSWORD }} + - name: Build Changelog + id: changelog + uses: ardalanamini/auto-changelog@v5 + with: + default-commit-type: New Features + github-token: ${{ github.token }} + if: github.event_name != 'workflow_dispatch' + + - name: Create release + uses: softprops/action-gh-release@v3 + id: create_release + with: + name: Release ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + body: | + ${{ steps.changelog.outputs.changelog }} + draft: false + prerelease: true + token: ${{ github.token }} + if: github.event_name != 'workflow_dispatch' + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3