diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index d6b7e03..8412da0 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,5 @@ +name-template: '$RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' categories: - title: '🚀 Features' labels: @@ -12,6 +14,21 @@ categories: labels: - 'chore' - 'dependencies' +version-resolver: + major: + labels: + - 'feature' + minor: + labels: + - 'enhancement' + patch: + labels: + - 'fix' + - 'bugfix' + - 'bug' + - 'chore' + - 'dependencies' + default: patch template: | ## Changes diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..3516ea1 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,18 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + release: + name: Update Release + runs-on: ubuntu-20.04 + steps: + - name: Publish Release + uses: release-drafter/release-drafter@v5 + with: + publish: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ed7ceef..bcdb5d2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,15 +34,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Publish Changelog - uses: release-drafter/release-drafter@v5.19.0 - with: - publish: true - name: ${{ github.ref_name }} - tag: ${{ github.ref }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Build Releases uses: goreleaser/goreleaser-action@v2.9.1 with: