Skip to content

Commit 514e3da

Browse files
authored
Optimize PyPI publish workflow
Reduced sleep duration for PyPI update wait and removed unnecessary installation steps.
1 parent d1107d5 commit 514e3da

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Check distribution
7373
run: |
74-
twine check dist/*
74+
twine check dist/
7575
7676
- name: Upload distributions
7777
if: success()
@@ -97,18 +97,6 @@ jobs:
9797
name: python-package-distributions
9898
path: dist/
9999

100-
- name: Installer
101-
run: |
102-
python -m pip install --upgrade pip
103-
pip install setuptools wheel twine
104-
105-
- name: Publish package to PyPI
106-
env:
107-
TWINE_USERNAME: __token__
108-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
109-
run: |
110-
twine upload dist/*
111-
112100
create-github-release:
113101
needs: publish-to-pypi
114102
name: Create GitHub Release
@@ -192,7 +180,7 @@ jobs:
192180
python-version: ${{ matrix.python-version }}
193181

194182
- name: Wait for PyPI to update
195-
run: sleep 60
183+
run: sleep 30
196184

197185
- name: Install from PyPI
198186
run: |

0 commit comments

Comments
 (0)