diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d9ab35e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + build: + if: github.repository == 'GDay/django-q2' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python -m pip install -U pip setuptools poetry + python -m pip install poetry + - name: Build and publish package + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + run: poetry --build --username=__token__ --password=${{ secrets.PYPI_TOKEN }} publish diff --git a/pyproject.toml b/pyproject.toml index ae1d166..a520f46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,18 @@ [tool.poetry] -name = "django-q" -version = "1.3.9" +name = "django-q2" +version = "1.4.0" +packages = [ + { include = "django_q" }, +] description = "A multiprocessing distributed task queue for Django" -authors = ["Ilan Steemers "] -maintainers = ["Ilan Steemers "] +authors = ["Stan Triepels ", "Ilan Steemers "] +maintainers = ["Stan Triepels "] license = "MIT" readme = 'README.rst' -repository = "https://github.com/koed00/django-q" -homepage = "https://django-q.readthedocs.org" -documentation = "https://django-q.readthedocs.org" +repository = "https://github.com/GDay/django-q2" +homepage = "https://django-q2.readthedocs.org" +documentation = "https://django-q2.readthedocs.org" keywords = ["django", "distributed", "multiprocessing", "queue", "scheduler"]