Skip to content

Commit

Permalink
Update build-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 21, 2024
1 parent 8019bf6 commit f80f996
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:

- name: Publish to Pypi
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/

- name: Publish Source to Pypi
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand All @@ -56,3 +50,4 @@ jobs:
python3 -m pip install --upgrade --upgrade-strategy eager twine
python3 setup.py sdist
python3 -m twine upload dist/*.tar.gz
python3 -m twine upload wheelhouse/*.whl

0 comments on commit f80f996

Please sign in to comment.