From ea9ef1343cc7e3ed4e1e65bdc4f931e74c21c386 Mon Sep 17 00:00:00 2001 From: Linlang Date: Wed, 18 Dec 2024 21:15:59 +0800 Subject: [PATCH] fix upload to testpypi error --- .github/workflows/python-publish.yml | 48 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3930f2249..19070c48e 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -82,31 +82,31 @@ jobs: os: [windows-latest, ubuntu-latest, macos-13, macos-latest] steps: - - name: Checkout repo - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v4 - # - name: Set up Python ${{ matrix.python-version }} - # uses: actions/setup-python@v5 - # with: - # python-version: ${{ matrix.python-version }} - - # - name: Install cibuildwheel - # run: | - # python -m pip install --upgrade pip - # python -m pip install cibuildwheel + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v5 + # with: + # python-version: ${{ matrix.python-version }} + + # - name: Install cibuildwheel + # run: | + # python -m pip install --upgrade pip + # python -m pip install cibuildwheel - # - name: Build wheel - # run: | - # python -m cibuildwheel --output-dir dist + # - name: Build wheel + # run: | + # python -m cibuildwheel --output-dir dist - - name: Build wheel - uses: pypa/cibuildwheel@v0.22.0 + - name: Build wheel + uses: pypa/cibuildwheel@v0.22.0 - - name: Upload wheel - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} - run: | - ls dist - twine check dist/*.whl - twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl + - name: Upload wheel + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} + run: | + ls dist + twine check dist/*.whl + twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl