Firstly you have to ensure, that package properly builds, publishes and works. To do this, you must first publish it on https://test.pypi.org
-
Create tag on main branch:
git tag <tagname>
-
Push created tag to repository
git push origin <tagname>
After this GitHubActions will automatically build pip package and push it to test PyPi registry
-
Ensure, that installed pip package from https://test.pypi.org works properly
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple sova==<tagname>
-
Publish pip package manually on production PyPi using the following steps:
- Go to Actions page
- Go to "Publish pip on PyPi" workflow on left side of the screen
- Go to "Run workflow" and choose last tag which has been created from tags
- Click "Run workflow"
After this GitHubActions will automatically build pip package and push it to test production registry