- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
Open
Description
See the Python packaging documentation, the PyPI documentation, and the official pypi-publish GitHub action documentation on trusted publishing.
Actions (click to expand)
- Configure (or use an existing) GitHub environment and add to PyPI
 - In the 
Publish PyPijob of theReleaseCI workflow:- add aforementioned environment (eg name 
pypi), and permissions:+ environment: + name: pypi + url: https://pypi.org/p/flatbuffers + permissions: + id-token: write + contents: read
 - in the 
Upload to PyPistep, switch to using the action:- run: python3 -m twine upload dist/* + uses: pypa/gh-action-pypi-publish@release/v1`
 - in the 
Install Dependenciesstep, removetwine:- python3 -m pip install setuptools wheel twine + python3 -m pip install setuptools wheel
 
 - add aforementioned environment (eg name 
 - You will be able to remove the 
TWINE_TOKENproject secret 
Related: #8731
Metadata
Metadata
Assignees
Labels
No labels