From fa16e127653d5184bc24f31c26126ff28af125e1 Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Mon, 8 Jan 2024 10:22:05 -0500 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d9dc1b..c075397 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,10 +83,10 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish to pypi - env: - TWINE_USERNAME: ${{secrets.PYPI_USERNAME}} - TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}} + - name: Build the distribution run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Upload to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}