You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. In your GitHub repository, go to Settings > Secrets and variables > Actions
40
-
4. Create a new secret named `PYPI_API_TOKEN` and paste the token
37
+
PyPI uses **Trusted Publishing** (OIDC), which requires no tokens or passwords:
38
+
39
+
1. Go to https://pypi.org/manage/account/publishing/ (or create the project first via manual upload)
40
+
2. Add a new "pending publisher" for your package:
41
+
-**PyPI Project Name**: `vectorize-iris`
42
+
-**Owner**: Your GitHub username or org (e.g., `vectorize-io`)
43
+
-**Repository name**: `vectorize-iris`
44
+
-**Workflow name**: `release.yml`
45
+
-**Environment name**: (leave blank)
46
+
3. Save the publisher
47
+
48
+
**Note**: If the package doesn't exist on PyPI yet, you'll need to do a one-time manual upload first, then configure Trusted Publishing in the project settings.
49
+
50
+
For more info: https://docs.pypi.org/trusted-publishers/
41
51
42
52
### 2. npm Token (for Node.js releases)
43
53
@@ -169,9 +179,11 @@ If the automated workflow fails, you can manually release individual components:
169
179
# Update version in python-api/pyproject.toml first
170
180
cd python-api
171
181
python -m build
182
+
183
+
# Manual upload (requires PyPI credentials)
172
184
python -m twine upload dist/*
173
185
174
-
#Create and push tag
186
+
#Or just create and push the tag to trigger automated release
0 commit comments