Commit 2ea366b4 authored by Thierry's avatar Thierry

change file

parent 0e03d480
......@@ -33,21 +33,21 @@ 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 # 确认没有未提交的文件
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 # 确认没有未提交的文件
#scan # 运行测试
#sync_build_number_to_git # 将 build 号设为 git commit 数
increment_version_number(version_number: target_version) # 设置版本号
#increment_version_number(version_number: target_version) # 设置版本号
#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
#push_to_git_remote # 推送到 git 仓库
#pod_push(path: "GMPhobos.podspec", repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
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
push_to_git_remote # 推送到 git 仓库
pod_push(path: "GMPhobos.podspec", repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
end
end
......
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