From 0ee6fd8a359e55b8c69ab124a646880d2f95ec1e Mon Sep 17 00:00:00 2001 From: Katsuya Hyodo Date: Wed, 25 May 2022 15:35:51 +0900 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2f4f518..7d2a5c4 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -18,11 +18,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Package build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + pip install setuptools wheel pipenv + - name: Build run: | python setup.py sdist bdist_wheel - twine upload --repository pypi dist/* + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}