Skip to content

Commit

Permalink
Merge pull request #474 from pepkit/updated-pypi-release-file
Browse files Browse the repository at this point in the history
Update python-publish.yml
  • Loading branch information
khoroshevskyi committed Jan 17, 2024
2 parents c0affde + 0eae6a3 commit f0c0ec9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/python-publish.yml
Expand Up @@ -8,10 +8,12 @@ on:
types: [created]

jobs:
deploy:

pypi-publish:
runs-on: ubuntu-latest

name: release to PyPI
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -23,9 +25,6 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
- 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/*

0 comments on commit f0c0ec9

Please sign in to comment.