Skip to content

Commit

Permalink
Merge pull request #219 from jenshnielsen/use_trusted_flow
Browse files Browse the repository at this point in the history
Switch publish to official pypi action
  • Loading branch information
jenshnielsen authored Apr 25, 2023
2 parents 614fef7 + 4f31b39 commit c55a2dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/upload_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
deploy:

runs-on: ubuntu-latest

permissions:
id-token: write
steps:
- uses: actions/checkout@v3.5.2
- name: Set up Python
Expand All @@ -23,9 +24,6 @@ jobs:
python -m build
- name: Install Twine
run: pip install twine
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c55a2dd

Please sign in to comment.