diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..806a0f3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + release: + types: + - published + +env: + DEFAULT_PYTHON: 3.12 + +jobs: + release-pypi: + name: Upload release to PyPI + runs-on: ubuntu-latest + steps: + - name: Check out code from Github + uses: actions/checkout@v2.3.4 + - name: Set up Python ${{ env.DEFAULT_PYTHON }} + id: python + uses: actions/setup-python@v2.2.2 + with: + python-version: ${{ env.DEFAULT_PYTHON }} + - name: Install requirements + run: | + python -m pip install --disable-pip-version-check -U pip twine poetry "poetry-core<1.3.0" + - name: Build distributions + run: | + poetry build -f wheel + poetry build -f sdist + - name: Upload to PyPI + if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') + env: + TWINE_REPOSITORY: pypi + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + twine upload --verbose dist/* diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 25b68a4..09b7e8a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ Changelog ========= -Version 2.6.0 +Version 2.6.1 ------------- NOTICE @@ -22,6 +22,11 @@ Other - CI now tests against Django 5.1 +Version 2.6.0 (09 Oct. 2024) +---------------------------- + +Not released for lack of a release pipeline at the time the tag was created. + Version 2.5.5 (14 May 2023) --------------------------- diff --git a/pyproject.toml b/pyproject.toml index 0f25404..a98e802 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "poetry-core>=1" ] [tool.poetry] name = "pylint-django" -version = "2.6.0" +version = "2.6.1" readme = "README.rst" description = "A Pylint plugin to help Pylint understand the Django web framework" repository = "https://github.com/pylint-dev/pylint-django"