fastlane提交AdHoc测试包到蒲公英平台,获取git提交信息展示到更新说明中

直接上fastlane文件配置(Fastfile中的代码)

desc "发布一个测试版本到蒲公英"
lane :pgy do |options|
  match(type: "adhoc", readonly: true) if not options[:skip_match]
  add_beta_badge
  gym(export_method: "ad-hoc", export_xcargs: "-allowProvisioningUpdates")
  #获取最后一次git提交 
  commit = last_git_commit
  #获取git提交的信息和git提交作者
  message = commit[:message] + "修改者:"+ commit[:author]
  #上传蒲公英
  pgyer(api_key: "xxx", user_key: "xxxx",update_description:message)
  reset_git_repo(force: true, skip_clean: true)
end

猜你喜欢

转载自blog.csdn.net/sky_long_fly/article/details/126346137