Follow the "Configuring Trusted Publishing" section of https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/