Skip to content

Commit

Permalink
allow upload to pypi offical site
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed Feb 7, 2021
1 parent 4ee36d7 commit 2a2144b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,11 @@ jobs:
repository_url: https://test.pypi.org/legacy/
packages_dir: dist/
skip_existing: true
- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/
skip_existing: true

0 comments on commit 2a2144b

Please sign in to comment.