From 2a2144b77b8361824cf75ae91d13dddb770b80b4 Mon Sep 17 00:00:00 2001 From: "Joshua Z. Zhang" Date: Sat, 6 Feb 2021 23:40:35 -0800 Subject: [PATCH] allow upload to pypi offical site --- .github/workflows/pypi.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4dc439b..5e2e77d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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