Skip to content

Commit

Permalink
Use a secure environment to publish wheels to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed May 4, 2023
1 parent 78587ee commit e7b230a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
needs: [lint, typecheck, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment: deploy-to-pypi
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -127,9 +128,6 @@ jobs:
python -m pip install -U pip setuptools wheel
pip install -U -r requirements/build.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python -m build -s -w
twine upload dist/*

0 comments on commit e7b230a

Please sign in to comment.