From ac13acbc626ce73da3e882b57b023d684bbb9ac3 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sat, 10 Feb 2024 19:59:54 +0800 Subject: [PATCH] Upload to PyPi with API token Signed-off-by: Chad Wilson --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc0cd9667..d401f6757 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -161,15 +161,14 @@ jobs: - name: Deploy to pypi env: - PYPI_USER: ${{ secrets.PYPI_USER }} GAUGE_PACKAGE_NAME: getgauge-cli - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | cd build/pip pip install -r requirements.txt python build.py --dist gauge_package=`ls dist/$GAUGE_PACKAGE_NAME-$GAUGE_VERSION.tar.gz` - python -m twine upload -u $PYPI_USER -p $PYPI_PASSWORD $gauge_package + python -m twine upload --non-interactive $gauge_package npm-release: runs-on: ubuntu-latest