From 799fa9bfc8c956fb7fe06c462bbaa28f97a15057 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Sat, 21 Dec 2024 13:34:55 -0700 Subject: [PATCH] Update build-publish.yml --- .github/workflows/build-publish.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 0b8ec31..fbf414f 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -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 }} @@ -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