Skip to content

Commit

Permalink
Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 11, 2024
1 parent 3d570c1 commit b9df4d4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"

0 comments on commit b9df4d4

Please # to comment.