Skip to content

Commit 89e90ae

Browse files
committed
build(github): publish to PyPI
1 parent 3c1baec commit 89e90ae

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/python.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,20 @@ jobs:
3434
# - run: LOGGING_LEVEL=critical python -m coverage run --append --branch --source . -m unittest -v test.test_version
3535
- run: python -m coverage report --show-missing
3636
- run: codecov
37+
publish:
38+
if: startsWith(github.ref, 'refs/tags/v')
39+
needs: build
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
with:
44+
fetch-depth: 0
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.10'
48+
architecture: x64
49+
- run: pip install -r requirements_test.txt
50+
- run: python setup.py bdist_wheel sdist
51+
- uses: pypa/gh-action-pypi-publish@release/v1
52+
with:
53+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)