-
generate a Twine API token in your account settings at pypi
-
Add the API key as an encrypted secret to your github repo:
- On GitHub, navigate to the main page of the repository.
- Under your repository name, click Settings.
- In the left sidebar, click Secrets.
- Type "
TWINE_API_KEY
" in the "Name" input box. - Enter your twine API token.
- Click Add secret.
-
In
.github/workflows/pythonpublish.yml
, under theBuild and Publish
step, enter:env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
view code coverage at https://codecov.io/gh//