From 6d40b45ccf3d9401abc2f98c9e7b41146364f546 Mon Sep 17 00:00:00 2001 From: Sichao25 Date: Wed, 18 Sep 2024 18:34:09 -0400 Subject: [PATCH] debug workflow --- .github/workflows/python-publish.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9736dc99..b7194985 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -42,10 +42,12 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - name: Build package + run: python setup.py sdist bdist_wheel + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + repository-url: https://upload.pypi.org/legacy/ + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}