-
Before publishing update package version in setup.py file located in root folder of application.
-
There are two ways to build package: Automatic and Manual.
-
Automatic build will be trigger when new github release is created.
-
Go to Actions tab and select Build and publish Python 🐍 distributions 📦 to PyPI or Build and publish Python 🐍 distributions 📦 to TestPyPI action and click on Run workflow
-
Select the desired branch e.g main or master branch and finally click on Run workflow button.
Above process will start building and then publishing your package. -
Once build result of workflow is successful, Check published version of pip package in pypi or test.pypi repo based on selected action.
Note: Please make sure package version is updated to newer version before publishing.