From b9df4d428e3f42275be97b0d7592740ba999aa0b Mon Sep 17 00:00:00 2001 From: Emery Berger Date: Wed, 11 Dec 2024 17:09:11 -0500 Subject: [PATCH] Updated. --- .github/workflows/release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 849c80b..9333d07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8, 3.9, 3.10, 3.11] + python-version: [3.8, 3.9, 3.10, 3.11, 3.12] runs-on: ${{ matrix.os }} steps: @@ -26,19 +26,20 @@ jobs: - name: Install build tools run: | python -m pip install --upgrade pip - pip install build + pip install build twine - name: Build package run: python -m build - - name: Publish to PyPI (only on Ubuntu and Python 3.10) - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' - uses: pypa/gh-action-pypi-publish@v2 - with: - password: ${{ secrets.PYPI_API_TOKEN }} + - name: Publish to PyPI + if: always() + run: | + python -m twine upload dist/* --verbose + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - name: Test installation (optional) run: | pip install dist/*.whl python -c "import bigo" -