diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ff9e8b1..7816de7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ name: Release on: push: - branches: - - master tags: - '*' @@ -24,3 +22,11 @@ jobs: with: name: dist path: dist/ + + - name: Upload packages to Jazzband + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1.8 + with: + user: jazzband + password: ${{ secrets.JAZZBAND_RELEASE_KEY }} + repository_url: https://jazzband.co/projects/django-polymorphic/upload diff --git a/polymorphic/__init__.py b/polymorphic/__init__.py index afd1dfc1..5931c5b0 100644 --- a/polymorphic/__init__.py +++ b/polymorphic/__init__.py @@ -6,7 +6,7 @@ Please see LICENSE and AUTHORS for more information. """ -VERSION = "3.1.0" +VERSION = "4.0.0a" # version synonym for backwards compatibility __version__ = VERSION