Skip to content

Commit a930ec9

Browse files
Adding twine
1 parent 069ddd9 commit a930ec9

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,24 @@ jobs:
3535
if: "success() && startsWith(github.ref, 'refs/tags/')"
3636
runs-on: ubuntu-latest
3737
steps:
38-
- name: Publish package to PyPI
39-
uses: pypa/gh-action-pypi-publish@master
38+
- uses: actions/checkout@v2
39+
40+
- name: set up python
41+
uses: actions/setup-python@v1
4042
with:
41-
user: __token__
42-
password: ${{ secrets.pypi_password }}
43+
python-version: '3.8'
44+
45+
- name: install
46+
run: |
47+
make install
48+
pip install -U wheel twine
49+
- name: build
50+
run: python setup.py sdist bdist_wheel
51+
52+
- run: twine check dist/*
53+
54+
- name: upload to pypi
55+
run: twine upload dist/*
56+
env:
57+
TWINE_USERNAME: __token__
58+
TWINE_PASSWORD: ${{ secrets.pypi_token }}

0 commit comments

Comments
 (0)