Skip to content

Commit 6c67004

Browse files
committed
fix: Publish to PyPI.
1 parent cb04baa commit 6c67004

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ jobs:
2727
python-version: '3.13'
2828
- name: Install dependencies
2929
run: |
30+
# First install Poetry in latest version, then install
31+
# build and twine in matching versions. The following
32+
# commands should not be run in a single line.
3033
pip install poetry
34+
pip install build twine
3135
poetry install
3236
- name: Run QA
3337
run: make qa
@@ -45,3 +49,14 @@ jobs:
4549
git push
4650
git tag ${{ steps.get_next_version.outputs.version }}
4751
git push origin ${{ steps.get_next_version.outputs.version }}
52+
- name: Build package
53+
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
54+
run: |
55+
python -m build
56+
- name: Publish package
57+
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
58+
env:
59+
TWINE_USERNAME: __token__
60+
TWINE_PASSWORD: ${{ secrets.TOKEN_GITHUB_TO_PYPI_RW }}
61+
run: |
62+
twine upload dist/*

0 commit comments

Comments
 (0)