Skip to content

Commit

Permalink
Merge pull request #1284 from jelmer/pypi-deploys
Browse files Browse the repository at this point in the history
Fix pypi deployments
  • Loading branch information
jelmer committed Apr 22, 2024
2 parents 1fa6259 + 281c15a commit 3556e52
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/python-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,16 @@ jobs:
- build-wheels
- build-sdist
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/dulwich-')
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/dulwich
steps:
- name: Install twine
run: |
python -m pip install --upgrade pip
pip install twine
- name: Download distributions
uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- name: Publish distributions
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3556e52

Please sign in to comment.