2025-10-16 23:06:20 +05:30
|
|
|
# This file contains the fastlane.tools configuration
|
|
|
|
|
# You can find the documentation at https://docs.fastlane.tools
|
|
|
|
|
#
|
|
|
|
|
# For a list of all available actions, check out
|
|
|
|
|
#
|
|
|
|
|
# https://docs.fastlane.tools/actions
|
|
|
|
|
#
|
|
|
|
|
# For a list of all available plugins, check out
|
|
|
|
|
#
|
|
|
|
|
# https://docs.fastlane.tools/plugins/available-plugins
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Uncomment the line if you want fastlane to automatically update itself
|
2025-10-17 00:40:33 +05:30
|
|
|
# update_fastlane
|
|
|
|
|
default_platform(:ios)
|
|
|
|
|
lane :release do
|
2025-10-17 01:27:23 +05:30
|
|
|
require 'yaml'
|
|
|
|
|
pubspec_path = File.expand_path('../../pubspec.yaml', __dir__)
|
|
|
|
|
pubspec = YAML.load_file(pubspec_path)
|
|
|
|
|
version = pubspec['version'] # e.g., "2.1.6+31"
|
|
|
|
|
semver, _build = version.split('+', 2)
|
|
|
|
|
tag = "v#{semver}"
|
|
|
|
|
link = "https://github.com/cogwheel0/conduit/releases/tag/#{tag}"
|
|
|
|
|
notes_path = File.expand_path('metadata/en-US/release_notes.txt', __dir__)
|
|
|
|
|
File.write(notes_path, link + "\n")
|
2025-10-17 00:40:33 +05:30
|
|
|
app_store_connect_api_key(
|
|
|
|
|
key_id: ENV['FASTLANE_API_KEY_ID'],
|
|
|
|
|
issuer_id: ENV['FASTLANE_API_KEY_ISSUER_ID'],
|
|
|
|
|
key_filepath: ENV['FASTLANE_API_KEY_PATH']
|
|
|
|
|
)
|
|
|
|
|
deliver
|
|
|
|
|
end
|