Update and split bump scripts

This commit is contained in:
Davide De Rosa 2024-09-23 15:25:16 +02:00
parent 6cc86e8668
commit a0b37676a0
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 18 additions and 7 deletions

10
ci/bump-version.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ -z $1 ]; then
echo "Version number required"
exit 1
fi
if [ ! -z $2 ]; then
BUILD="build:$2"
fi
VERSION="version:$1"
bundle exec fastlane bump $VERSION $BUILD

View File

@ -1,5 +1,5 @@
#!/bin/sh
if [ ! -z $1 ]; then
VERSION="version:$1"
BUILD="build:$1"
fi
bundle exec fastlane bump "$VERSION"
bundle exec fastlane bump $BUILD

View File

@ -21,8 +21,9 @@ logname = "CHANGELOG.txt"
desc "Bump version"
lane :bump do |options|
increment_build_number
version = options[:version]
build = options[:build]
increment_build_number(build_number: build)
unless version.nil? || version.empty?
increment_version_number_in_xcodeproj(version_number: version)
end
@ -37,10 +38,10 @@ lane :bump do |options|
message: "Bump version",
include: [logname]
)
#add_git_tag(
# includes_lane: false,
# sign: true
#)
add_git_tag(
includes_lane: false,
sign: true
)
end
desc "Push a new beta build to TestFlight"