Skip to content

Commit d71d73d

Browse files
nadavisclaude
andcommitted
fix: add TWINE credentials and twine to build command for PyPI upload
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7a74163 commit d71d73d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
env:
3535
GH_TOKEN: ${{ secrets.AUTO_PR_TOKEN }}
3636
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
37+
TWINE_USERNAME: __token__
38+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3739
run: |
3840
git config user.name "github-actions[bot]"
3941
git config user.email "github-actions[bot]@users.noreply.github.com"

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ packages = ["node9"]
3434
[tool.semantic_release]
3535
version_toml = ["pyproject.toml:project.version"]
3636
branch = "main"
37-
build_command = "pip install build && python -m build"
37+
build_command = "pip install build twine && python -m build"
3838
dist_path = "dist/"
3939
upload_to_pypi = true
4040
upload_to_release = true
4141
commit_version_number = true
4242
tag_commit = true
4343
hvcs = "github"
44+
45+
[tool.semantic_release.publish]
46+
upload_to_vcs_release = true

0 commit comments

Comments
 (0)