From 562d4d0bdf965b46d3da4ca3a9648824426da338 Mon Sep 17 00:00:00 2001 From: Junhao Date: Tue, 25 Jun 2024 22:56:44 +0100 Subject: [PATCH] revert pypi.yml --- .github/workflows/pypi.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4e18287..5d3602c 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -12,25 +12,20 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v2 with: python-version: '3.x' - - name: Install build tools - run: | - python -m pip install --upgrade pip - pip install build twine + - name: Install pypa/build + run: python -m pip install build - name: Build a binary wheel and a source tarball run: python -m build --sdist --wheel --outdir dist/ - name: Publish distribution to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - twine check dist/* - twine upload dist/* + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + password: ${{ secrets.PYPI_API_TOKEN }}