Skip to content

Commit

Permalink
Move to Openid publishing to pypi.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriks73 committed Aug 2, 2024
1 parent 1144d04 commit dfa9fee
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ on:

jobs:
deploy:

runs-on: ubuntu-20.04
# Specifying a GitHub environment is optional, but strongly encouraged
# environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -25,12 +29,9 @@ jobs:
sudo apt-get install libsndfile1
sudo apt-get install ffmpeg
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel
pip install .[testing]
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit dfa9fee

Please sign in to comment.