Skip to content

Commit

Permalink
Use trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- authored Aug 21, 2024
1 parent 79832f6 commit ecede83
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Build SDist
run: pipx run build --sdist

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

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

- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
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

- 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 ecede83

Please sign in to comment.