Skip to content

Commit

Permalink
use pypa/gh-action-pypi-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed May 28, 2024
1 parent 9bdde91 commit e238c83
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

environment:
name: ${{ secrets.PYPI_USERNAME }}
url: https://pypi.org/p/autopep8
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -22,9 +26,6 @@ jobs:
python -m pip install --upgrade pip build
pip install setuptools wheel twine
- name: Build
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
- name: Publish distribution 📦 to PyPI
Expand Down

0 comments on commit e238c83

Please sign in to comment.