Skip to content

Commit d45fdc6

Browse files
authored
Merge pull request #538 from Sichao25/debug
update publish workflow
2 parents 4a8c1b6 + 4496907 commit d45fdc6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141
- name: Install dependencies
4242
run: |
4343
python -m pip install --upgrade pip
44-
pip install setuptools wheel twine
45-
- name: Build and publish
46-
env:
47-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
48-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
49-
run: |
50-
python setup.py sdist bdist_wheel
51-
twine upload --verbose dist/*
44+
pip install build setuptools wheel twine
45+
- name: Build package
46+
run: python setup.py sdist bdist_wheel
47+
- name: Publish package
48+
uses: pypa/gh-action-pypi-publish@v1
49+
with:
50+
verbose: true
51+
repository-url: https://upload.pypi.org/legacy/
52+
user: __token__
53+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)