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