Skip to content

Commit

Permalink
switch to PyPI trusted publishing (aio-libs#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Aug 20, 2024
1 parent 1fdfd69 commit d55d6e2
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,13 @@ jobs:
name: Deploy
needs: [build-tarball]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install twine
run: |
python -m pip install twine
- name: Download dists
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: PyPI upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d55d6e2

Please sign in to comment.