Skip to content

Commit 6847fdb

Browse files
nadavisclaude
andcommitted
fix: publish to PyPI explicitly with twine instead of semantic-release publish
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 09a85f3 commit 6847fdb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,17 @@ jobs:
3333
- name: Release
3434
env:
3535
GH_TOKEN: ${{ secrets.AUTO_PR_TOKEN }}
36-
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
37-
TWINE_USERNAME: __token__
38-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3936
run: |
4037
git config user.name "github-actions[bot]"
4138
git config user.email "github-actions[bot]@users.noreply.github.com"
4239
git remote set-url origin https://x-access-token:${{ secrets.AUTO_PR_TOKEN }}@github.com/node9-ai/node9-python.git
4340
semantic-release version
44-
semantic-release publish
41+
42+
- name: Build
43+
run: python -m build
44+
45+
- name: Publish to PyPI
46+
env:
47+
TWINE_USERNAME: __token__
48+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
49+
run: twine upload dist/* --skip-existing

0 commit comments

Comments
 (0)