Skip to content

Commit

Permalink
chore: fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 9, 2024
1 parent 4b18fe8 commit b0427ab
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,19 @@ platform :ios do
app_identifier: app_identifier,
)
end

private_lane :setup_project do
if (ENV["GITHUB_ACTIONS"] != 'true')
create_keychain(
name: "action_keychain",
password: "githubaction",
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: false
)
end
end
lane :upload_store do |params|
if (params[:flavor] == "production")
upload_to_app_store(
Expand Down Expand Up @@ -325,21 +338,25 @@ platform :ios do
lane :beta do |options|
checkSentryClitatus
checkGitStatus
setup_project
npm_installl(platform:'ios')
build_flavor(platform:'ios', flavor:'beta', options:options)
end
desc 'Ship iOS build to Testflight.'
lane :alpha do |options|
checkSentryClitatus
checkGitStatus
setup_project
end
npm_installl(platform:'ios')
build_flavor(platform:'ios', flavor:'alpha', options:options)
end

desc 'Ship iOS build to AppStore.'
lane :production do |options|
checkSentryClitatus
# checkGitStatus
checkGitStatus
setup_project
npm_installl(platform:'ios')
build_flavor(platform:'ios', flavor:'production', options:options)
end
Expand Down

0 comments on commit b0427ab

Please sign in to comment.