diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ae48140..645df02 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@v7 + with: + fetch-depth: 0 - uses: actions/setup-node@v7 with: @@ -79,6 +82,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@v4