Usage: $ ./tool/release/release.sh [patch|minor|major]
Example 1: releasing patch will update from 2.1.1 to 2.1.2
run $ ./tool/release/release.sh patch
Example 2: releasing minor will update from 2.1.1 to 2.2.0
run $ ./tool/release/release.sh minor
Example 3: releasing major will update from 2.1.1 to 3.0.0
run $ ./tool/release/release.sh major
Internally, the script retrieve latest git tag by git describe
,
and increment the version accroding to semantic versioning,
then push latest tag to remote master.
CI will automatically detect the update in master and build and release conda packages.