Skip to content

Commit 93c6388

Browse files
Add a release pipeline (#444)
Also fix the changelog
1 parent f4b1e28 commit 93c6388

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/workflows/release.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
env:
9+
DEFAULT_PYTHON: 3.12
10+
11+
jobs:
12+
release-pypi:
13+
name: Upload release to PyPI
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out code from Github
17+
uses: actions/[email protected]
18+
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
19+
id: python
20+
uses: actions/[email protected]
21+
with:
22+
python-version: ${{ env.DEFAULT_PYTHON }}
23+
- name: Install requirements
24+
run: |
25+
python -m pip install --disable-pip-version-check -U pip twine poetry "poetry-core<1.3.0"
26+
- name: Build distributions
27+
run: |
28+
poetry build -f wheel
29+
poetry build -f sdist
30+
- name: Upload to PyPI
31+
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
32+
env:
33+
TWINE_REPOSITORY: pypi
34+
TWINE_USERNAME: __token__
35+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
36+
run: |
37+
twine upload --verbose dist/*

CHANGELOG.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
Version 2.6.0
4+
Version 2.6.1
55
-------------
66

77
NOTICE
@@ -22,6 +22,11 @@ Other
2222

2323
- CI now tests against Django 5.1
2424

25+
Version 2.6.0 (09 Oct. 2024)
26+
----------------------------
27+
28+
Not released for lack of a release pipeline at the time the tag was created.
29+
2530
Version 2.5.5 (14 May 2023)
2631
---------------------------
2732

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [ "poetry-core>=1" ]
55

66
[tool.poetry]
77
name = "pylint-django"
8-
version = "2.6.0"
8+
version = "2.6.1"
99
readme = "README.rst"
1010
description = "A Pylint plugin to help Pylint understand the Django web framework"
1111
repository = "https://github.com/pylint-dev/pylint-django"

0 commit comments

Comments
 (0)