Commit 041f5bb
committed
ci: switch PyPI publish workflow to Trusted Publishing
Replace the rye PYPI_TOKEN env with the pypa/gh-action-pypi-publish
action and id-token: write permissions, so the workflow uploads via
PyPI Trusted Publishing rather than a long-lived token. Other steps
in publish-pypi.yml are unchanged.
After merge, the PyPI project will need a Trusted Publisher binding
pointing at openai/openai-python and the publish-pypi.yml workflow
name. Closes #3273.1 parent e757667 commit 041f5bb
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments