Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit db62167

Browse files
committed
Improve release lanes to better run locally
1 parent 43dc888 commit db62167

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.buildkite/commands/release-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ install_gems
66
echo "--- :closed_lock_with_key: Installing Secrets"
77
bundle exec fastlane run configure_apply
88

9-
echo "--- :hammer_and_wrench: Building"
9+
echo "--- :hammer_and_wrench: Building and Uploading to Play Store"
1010
bundle exec fastlane build_and_upload_to_play_store

fastlane/Fastfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,32 +122,33 @@ platform :android do
122122
require_env_vars!('BUILDKITE_TOKEN')
123123
ensure_git_status_clean
124124

125-
Fastlane::Helper::GitHelper.checkout_and_pull(DEFAULT_BRANCH)
126-
127125
UI.important <<~PROMPT
128126
Initiating a new alpha release.
129127
This will:
128+
- Checkout and pull the #{DEFAULT_BRANCH} branch (if running in CI)
130129
- Bump the build code from #{build_code_current} to #{build_code_next}
131130
- Trigger a new alpha build in Buildkite
132131
PROMPT
133132
next unless skip_confirm || UI.confirm('Continue?')
134133

134+
Fastlane::Helper::GitHelper.checkout_and_pull(DEFAULT_BRANCH) if is_ci?
135+
135136
bump_build_code
136137

137138
push_to_git_remote
138139

139-
trigger_alpha_build
140+
trigger_release_build
140141
end
141142

142143
# Trigger a new alpha build on CI
143144
#
144-
lane :trigger_alpha_build do
145+
lane :trigger_release_build do
145146
require_env_vars!('BUILDKITE_TOKEN')
146147

147148
trigger_buildkite_build(
148-
branch: DEFAULT_BRANCH,
149+
branch: git_branch,
149150
pipeline: 'release-builds.yml',
150-
message: "Alpha Build (#{build_code_current})"
151+
message: "Release Build (#{build_code_current})"
151152
)
152153
end
153154

0 commit comments

Comments
 (0)