Skip to content

Commit

Permalink
Merge branch 'master' into usecounter
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- authored Dec 9, 2024
2 parents e1fc0ec + d721fdf commit 886b85d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: artifact-sdist
path: dist/*.tar.gz

build_wheels:
Expand All @@ -47,22 +48,24 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: 10.14

- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifact-wheel-${{ matrix.os }}
path: wheelhouse/*.whl

upload_all:
pypi-publish:
needs: [build_wheels, make_sdist]
name: Upload release to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

permissions:
id-token: write
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
pattern: artifact-*
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.pypi_token }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 886b85d

Please sign in to comment.