Skip to content

Commit 8bd4fca

Browse files
ci: remove Test PyPI upload, only upload to real PyPI on release
1 parent b571aec commit 8bd4fca

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,9 @@ jobs:
5959
name: dist-packages
6060
path: dist/
6161

62-
publish-test:
63-
needs: build
64-
runs-on: ubuntu-latest
65-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
66-
67-
steps:
68-
- name: Download build artifacts
69-
uses: actions/download-artifact@v4
70-
with:
71-
name: dist-packages
72-
path: dist/
73-
74-
- name: Publish to Test PyPI
75-
env:
76-
TWINE_USERNAME: __token__
77-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
78-
run: |
79-
pip install twine>=4.0.0
80-
# Check package metadata before upload
81-
twine check dist/*
82-
# Try to upload with verbose output
83-
twine upload --repository testpypi --verbose dist/*
8462

8563
publish-prod:
86-
needs: [build, publish-test]
64+
needs: build
8765
runs-on: ubuntu-latest
8866
if: github.event_name == 'release' && github.event.action == 'published'
8967

0 commit comments

Comments
 (0)