Skip to content

Commit

Permalink
Update pypi-upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh authored Jul 2, 2024
1 parent 4bef4da commit 00259e0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
upload:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/tdgl
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
Expand All @@ -19,10 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: "Builds and uploads to PyPI"
- name: "Builds distribution"
run: |
python -m build
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 00259e0

Please sign in to comment.