forked from BilalShahid13/PersistentBottomNavBar
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
if ! [[ -z $1 ]]; then | ||
explicit_version=true; | ||
if [ "$1" = "major" ]; then | ||
explicit_version=false; fi | ||
if [ "$1" = "minor" ]; then | ||
explicit_version=false; fi | ||
if [ "$1" = "patch" ]; then | ||
explicit_version=false; fi | ||
if [ "$explicit_version" = "true" ]; then | ||
cider version $1; | ||
else | ||
cider bump $1; | ||
fi | ||
flutter pub get; | ||
|
||
new_version=$(cider version); | ||
|
||
echo "New version: $new_version"; | ||
echo "Changes to release:"; | ||
cider describe; | ||
cider release; | ||
git commit pubspec.yaml CHANGELOG.md example/pubspec.lock -m "Version $new_version"; | ||
git tag -a v$new_version -m "Version $new_version"; | ||
git push; | ||
git push --tags; | ||
exit 0; | ||
else | ||
echo "Usage: $0 version number or major, minor, patch"; | ||
exit 1; | ||
fi |