Skip to content

Commit

Permalink
Changed pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Damian authored and Adrian Damian committed Mar 28, 2024
1 parent 80b4ed1 commit 3b85b0f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
name: Build and publish to PyPI
needs: style_n_coverage
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
if: contains(github.ref, '=')
steps:
- uses: actions/checkout@v2
Expand All @@ -96,11 +99,5 @@ jobs:
cd ${{ env.repo_name }}
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_PUBLISH_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_PWORD }}
run: |
cd ${{ env.repo_name }}
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3b85b0f

Please sign in to comment.