Skip to content

Commit

Permalink
Merge pull request #1154 from jakob-keller/trusted-publishing
Browse files Browse the repository at this point in the history
Switch to PyPI trusted publishing (#1116)
  • Loading branch information
jakob-keller authored Aug 20, 2024
2 parents 1fdfd69 + d55d6e2 commit a8e64a4
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 a8e64a4

Please sign in to comment.