Commit 8a089ba1 authored by Steven杜宇's avatar Steven杜宇

// fastlane

parent 68c13848
......@@ -11,10 +11,14 @@ platform :ios do
adhoc_pgyer_api_key = "ba79f62a052072f2486ad29632fefd46"
release_pgyer_api_key = "ac973522a8c357596c3dd58d311d10d8"
before_all do
# 切换到develop分支
develop_branch = "develop"
sh "git checkout #{develop_branch}"
develop_branch = "develop"
main_branch = "main"
# 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do
# add actions here: https://docs.fastlane.tools/actions
sh "git checkout #{develop_branch}"
# 拉取最新代码
sh "git pull origin #{develop_branch}"
# 显示git当前分支最新submit id
......@@ -22,12 +26,6 @@ platform :ios do
# 更新pod第三方库
cocoapods(use_bundle_exec: true)
end
# 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do
# add actions here: https://docs.fastlane.tools/actions
gym(
workspace: 'galaxy.xcworkspace',
# 每次打包之前clean一下
......@@ -75,6 +73,13 @@ platform :ios do
lane :galaxyRelease do
# add actions here: https://docs.fastlane.tools/actions
sh "git checkout #{main_branch}"
# 拉取最新代码
sh "git pull origin #{main_branch}"
# 显示git当前分支最新submit id
sh "git rev-parse HEAD"
# 更新pod第三方库
cocoapods(use_bundle_exec: true)
gym(
workspace: 'galaxy.xcworkspace',
......
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