diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..22d3734 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,11 @@ +name-template: '$RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' +template: | + ## What's Changed + $CHANGES + + ## Contributors + $CONTRIBUTORS + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION +change-template: '- $TITLE by @$AUTHOR in #$NUMBER' diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ffe03da --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Create Release on Latest Tag Push + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Create Release + uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6 release-drafter + with: + name: ${{ github.ref_name }} + tag: ${{ github.ref_name }} + publish: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}