Go directly to the fastlane file configuration (code in 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