Skip to content

Commit

Permalink
Add a release pipeline (#444)
Browse files Browse the repository at this point in the history
Also fix the changelog
  • Loading branch information
Pierre-Sassoulas authored Oct 10, 2024
1 parent f4b1e28 commit 93c6388
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
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/*
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

Version 2.6.0
Version 2.6.1
-------------

NOTICE
Expand All @@ -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)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 93c6388

Please sign in to comment.