Commit 4d292815 authored by Thierry's avatar Thierry

change

parent 2ea366b4
......@@ -33,8 +33,6 @@ platform :ios do
desc "Release new version"
lane :release do |options|
target_version = options[:version]
pod_install
pod_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
raise "The version is missed." if target_version.nil?
ensure_git_branch # 确认 master 分支
ensure_git_status_clean # 确认没有未提交的文件
......@@ -42,7 +40,9 @@ platform :ios do
#sync_build_number_to_git # 将 build 号设为 git commit 数
#increment_version_number(version_number: target_version) # 设置版本号
pod_install
pod_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
version_bump_podspec(path: "GMPhobos.podspec", version_number: target_version) # 更新 podspec
git_commit_all(message: "Bump version to #{target_version}") # 提交版本号修改
add_git_tag tag: target_version # 设置 tag
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment