diff --git a/HealthFoodMe/HealthFoodMe.xcodeproj/project.pbxproj b/HealthFoodMe/HealthFoodMe.xcodeproj/project.pbxproj index b5a8f901..efc24802 100644 --- a/HealthFoodMe/HealthFoodMe.xcodeproj/project.pbxproj +++ b/HealthFoodMe/HealthFoodMe.xcodeproj/project.pbxproj @@ -2484,7 +2484,7 @@ CODE_SIGN_ENTITLEMENTS = HealthFoodMe/HealthFoodMe.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2022.0905.0018; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = FY8N9XTH66; GENERATE_INFOPLIST_FILE = YES; @@ -2525,7 +2525,7 @@ CODE_SIGN_ENTITLEMENTS = HealthFoodMe/HealthFoodMe.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2022.0905.0018; DEVELOPMENT_TEAM = FY8N9XTH66; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = HealthFoodMe/Info.plist; diff --git a/HealthFoodMe/fastlane/Fastfile b/HealthFoodMe/fastlane/Fastfile index d5d60bc2..80cf9bce 100644 --- a/HealthFoodMe/fastlane/Fastfile +++ b/HealthFoodMe/fastlane/Fastfile @@ -22,4 +22,23 @@ platform :ios do build_app(workspace: "HealthFoodMe.xcworkspace", scheme: "HealthFoodMe") upload_to_testflight end + + lane :set_version do |options| + case options[:version] + when "major", "minor", "patch" + increment_version_number(bump_type: options[:version]) + else + increment_version_number(version_number: options[:version]) + end + + increment_build_number( + build_number: Time.new.strftime("%Y.%m%d.%H%M") # 2021년 4월 17일 14시 53분 -> 2021.0417.1453 + ) + version_number = "#{lane_context[SharedValues::VERSION_NUMBER]}(#{lane_context[SharedValues::BUILD_NUMBER]})" + commit_version_bump( + message: "Update version - #{version_number}" + ) + add_git_tag(tag: "v#{version_number}") + push_to_git_remote + end end diff --git a/HealthFoodMe/fastlane/README.md b/HealthFoodMe/fastlane/README.md new file mode 100644 index 00000000..1c1cb344 --- /dev/null +++ b/HealthFoodMe/fastlane/README.md @@ -0,0 +1,40 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## iOS + +### ios beta + +```sh +[bundle exec] fastlane ios beta +``` + +Push a new beta build to TestFlight + +### ios set_version + +```sh +[bundle exec] fastlane ios set_version +``` + + + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).