chore: simplify fastlane config and release workflows

This commit is contained in:
cogwheel0
2025-10-24 13:37:24 +05:30
parent 1fe4a2db26
commit cb6a01a09e
6 changed files with 69 additions and 172 deletions

View File

@@ -15,24 +15,8 @@
default_platform(:android)
def write_android_changelog
require 'yaml'
pubspec_path = File.expand_path('../../pubspec.yaml', __dir__)
pubspec = YAML.load_file(pubspec_path)
version = pubspec['version']
semver, build = version.split('+', 2)
tag = "v#{semver}"
link = "https://github.com/cogwheel0/conduit/releases/tag/#{tag}"
changelog_dir = File.expand_path('metadata/android/en-US/changelogs', __dir__)
Dir.mkdir(changelog_dir) unless Dir.exist?(changelog_dir)
changelog_file = File.join(changelog_dir, "#{build}.txt")
File.write(changelog_file, link + "\n")
end
desc "Push a new release build to the Google Play"
lane :release do
write_android_changelog
upload_to_play_store(
json_key: ENV['FASTLANE_JSON_KEY_PATH'],
track: 'production',

View File

@@ -0,0 +1 @@
https://github.com/cogwheel0/conduit/releases/tag/v2.1.10