Skip to content

Commit b269518

Browse files
authored
Update release.yml
1 parent 24607cb commit b269518

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ jobs:
8383
run: |
8484
python -m pip install --upgrade pip
8585
pip install setuptools wheel twine
86-
- name: Build and publish to pypi
87-
env:
88-
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
89-
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
86+
- name: Build the distribution
9087
run: |
9188
python setup.py sdist bdist_wheel
92-
twine upload dist/*
89+
- name: Upload to pypi
90+
uses: pypa/gh-action-pypi-publish@release/v1
91+
with:
92+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)