Publish a Release
Update Package Version
-
Create a version bump feature branch
git checkout -b bump_version_v1.2.3
-
Update the package version in
/extra_model/__init__.py
__version__ = "1.2.3"
-
Update
CHANGELOG.md
in the project root -
Update any documentation that mentions the package version
-
Commit and push the changes
git add . git commit -m 'bumping version' git push -u origin bump_version_v1.2.3
-
Upon approval of the PR, merge changes to the
main
branch with the Github.com UI -
Pull down the changes merged to the
main
branchgit checkout main; git pull
Publish Release with Github Action
-
Tag changes with the new version
git tag v1.2.3 git push origin v1.2.3
-
Visit the
extra-model
repository -
Under Releases in the right column, visit
Create a new release
-
Enter the tag version you previously created in the
Tag version
input, and make sure themain
branch is selected. Title and description are optional. -
Press Publish Release at the bottom.
-
Visit Actions in the top navigation of the Github.com UI
-
Visit on the most recent workflow run. This run represents the Github Action that is building, testing, and publshing the package release to PyPI.
-
The publish action requires approval before publishing to PyPI. Click Review Deployments on the right side of the yellow notification bar.
-
Select the Publish Release checkbox and click Approve and Deploy to unblock the deployment.
-
The package will now be built, tested, and depoyed to PyPI! The new package version will be live once the pipeline completes.