Skip to content

Commit 17a00d6

Browse files
committed
Tune release process
1 parent 1a5b2bb commit 17a00d6

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v2
26-
- name: Setup Python 3.8
26+
- name: Setup Python
2727
uses: actions/setup-python@v2
28-
with:
29-
python-version: 3.8
3028
- name: Cache PyPI
3129
uses: actions/cache@v2
3230
with:
@@ -108,19 +106,21 @@ jobs:
108106
steps:
109107
- name: Checkout
110108
uses: actions/checkout@v2
111-
- name: Setup Python 3.8
109+
- name: Setup Python
112110
uses: actions/setup-python@v2
113-
with:
114-
python-version: 3.8
115111
- name: Install dependencies
116112
run:
117113
python -m pip install -U pip wheel twine build
118114
- name: Make dists
119115
run:
120116
python -m build
121-
- name: PyPI upload
122-
env:
123-
TWINE_USERNAME: __token__
124-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
125-
run: |
126-
twine upload dist/*
117+
- name: Make Release
118+
uses: aio-libs/[email protected]
119+
with:
120+
changes_file: CHANGES.rst
121+
name: async-timeout
122+
version_file: async-timeout/__init__.py
123+
github_token: ${{ secrets.GITHUB_TOKEN }}
124+
pypi_token: ${{ secrets.PYPI_TOKEN }}
125+
fix_issue_regex: '\(`#(\\d+) <https://github.com/aio-libs/async-timeout/issues/\\1>`_\)'
126+
fix_issue_repl: "(#\\1)"

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CHANGES
22
=======
33

4+
.. towncrier release notes start
5+
46
4.0.1 (2121-11-10)
57
------------------
68

0 commit comments

Comments
 (0)