diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 63fd1bda..aac76d52 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI on tag on: push: tags: - - '*' + - 'v*' jobs: build-and-publish: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..6828878a --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,29 @@ +name: Release Drafter + +on: + push: + branches: [master] + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update-release-draft: + if: github.event_name == 'push' + runs-on: blacksmith-2vcpu-ubuntu-2404 + permissions: + contents: write + pull-requests: read + steps: + - uses: release-drafter/release-drafter@34d80673e067bdc0c24568d3af899c216adcfaa9 # v7.7.0 + + auto-label: + if: github.event_name == 'pull_request' + runs-on: blacksmith-2vcpu-ubuntu-2404 + permissions: + contents: read + pull-requests: write + steps: + - uses: release-drafter/release-drafter/autolabeler@34d80673e067bdc0c24568d3af899c216adcfaa9 # v7.7.0