Skip to content

Commit

Permalink
Update build-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 21, 2024
1 parent 0a04eba commit 799fa9b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
# macos-13 is an intel runner, macos-14+ is apple silicon
os: [ubuntu-latest, macos-13]
os: [ubuntu-latest, macos-13, macos-14, macos-15]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -50,12 +50,12 @@ jobs:
python3 -m pip install --upgrade --upgrade-strategy eager twine setuptools
python3 -m twine upload wheelhouse/*.whl
# - name: Publish source to Pypi
# if: startsWith(github.ref, 'refs/tags/v')
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# source venv/bin/activate
# python3 setup.py sdist
# python3 -m twine upload dist/*.tar.gz
- name: Publish source to Pypi
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
source venv/bin/activate
python3 setup.py sdist
python3 -m twine upload dist/*.tar.gz

0 comments on commit 799fa9b

Please sign in to comment.