From 6c4933d18643bfe98cb812989fa34c61a783454c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BRIOL?= Date: Mon, 15 Jan 2024 13:51:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Update=20pypipublish.yaml=20to?= =?UTF-8?q?=20use=20token=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypipublish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypipublish.yaml b/.github/workflows/pypipublish.yaml index 05ffdb65..d5bc13f1 100644 --- a/.github/workflows/pypipublish.yaml +++ b/.github/workflows/pypipublish.yaml @@ -21,9 +21,9 @@ jobs: python -m pip install --upgrade pip pip install packaging setuptools twine - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + echo "[pypi]" > ~/.pypirc + echo "username = __token__" >> ~/.pypirc + echo "password = ${{ secrets.PYPI_PASSWORD }}" >> ~/.pypirc python setup.py sdist twine upload dist/*