Skip to content

Commit 9adb894

Browse files
committed
trying to fix PyPI release action
1 parent 33bd624 commit 9adb894

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install setuptools wheel twine
37-
- name: Build and publish
38-
env:
39-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
40-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
41-
run: |
42-
python setup.py sdist bdist_wheel
43-
twine upload dist/*
36+
pip install build twine
37+
- name: Build package
38+
run: python -m build
39+
- name: Publish to PyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[metadata]
2-
description-file = README.md
2+
description_file = README.md

0 commit comments

Comments
 (0)