Skip to content

Commit

Permalink
Add app_version parameter to fastlane (#196)
Browse files Browse the repository at this point in the history
* add app_version parameter

* fix increment_version_number
  • Loading branch information
shp7724 authored Dec 17, 2022
1 parent 12d5df9 commit 7b4d294
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions SNUTT-2022/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ GEM
fastlane (>= 2.148.1)
rbnacl
sshkey
fastlane-plugin-versioning (0.5.1)
ffi (1.15.5)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.29.0)
Expand Down Expand Up @@ -230,6 +231,7 @@ DEPENDENCIES
fastlane
fastlane-plugin-badge
fastlane-plugin-github_action
fastlane-plugin-versioning

BUNDLED WITH
2.3.11
11 changes: 6 additions & 5 deletions SNUTT-2022/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ platform :ios do
if BUILD_CONFIGURATION == "Debug"
add_badge(dark: true)
end
increment_version_number(version_number: VERSION_NUMBER)
increment_build_number(build_number: BUILD_NUMBER)
increment_version_number_in_xcodeproj(version_number: VERSION_NUMBER)
increment_build_number_in_xcodeproj(build_number: BUILD_NUMBER)
build_app(scheme: APP_NAME,
configuration: BUILD_CONFIGURATION,
output_directory: "./archive",
Expand All @@ -50,7 +50,7 @@ platform :ios do
issuer_id: APP_STORE_CONNECT_KEY_ISSUER,
key_content: KEY_CONTENT,
)
upload_to_testflight
upload_to_testflight(app_version: VERSION_NUMBER)
slack(
message: "App successfully uploaded to Testflight 🎉",
channel: "#team-snutt-deploy",
Expand All @@ -77,8 +77,8 @@ platform :ios do
begin
setup_ci
certificates_distribution
increment_version_number(version_number: VERSION_NUMBER)
increment_build_number(build_number: BUILD_NUMBER)
increment_version_number_in_xcodeproj(version_number: VERSION_NUMBER)
increment_build_number_in_xcodeproj(build_number: BUILD_NUMBER)
build_app(scheme: APP_NAME,
configuration: BUILD_CONFIGURATION,
output_directory: "./archive",
Expand All @@ -93,6 +93,7 @@ platform :ios do
release = get_github_release(url: "wafflestudio/snutt-ios", version: GIT_TAG_NAME)
upload_to_app_store(
force: true,
app_version: VERSION_NUMBER,
skip_screenshots: true,
submit_for_review: true,
automatic_release: false,
Expand Down
1 change: 1 addition & 0 deletions SNUTT-2022/fastlane/Pluginfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

gem 'fastlane-plugin-github_action'
gem 'fastlane-plugin-badge'
gem 'fastlane-plugin-versioning'

0 comments on commit 7b4d294

Please sign in to comment.