Commit bcfd5591 authored by jaguar-bot's avatar jaguar-bot

Bump version to 0.1.3

parent a517a653
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = "GMNetService"
s.version = "0.1.2"
s.version = "0.1.3"
s.summary = "A short description of GMNetService."
s.homepage = "http://git.gengmei.cc/gengmeiios/GMNetService"
s.license = 'MIT'
......
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.80.0"
default_platform :ios
actions_path "#{File.join(Dir.home, '.Jaguar', 'actions')}"
import "#{File.join(Dir.home, '.Jaguar', 'fastfile', 'pod_fastfile')}"
platform :ios do
before_all do
end
desc "Release new version"
lane :release do |options|
path = "GMNetService.podspec"
target_version = options[:version]
raise "The version is missed." if target_version.nil?
ensure_git_branch # 确认 master 分支
pod_install
pod_lib_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
version_bump_podspec(path: path, version_number: target_version) # 更新 podspec
git_commit_all(message: "Bump version to #{target_version}") # 提交版本号修改
add_git_tag tag: target_version # 设置 tag
push_to_git_remote # 推送到 git 仓库
pod_push(path: path, repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
options[:name] = 'GMNetService'
do_release(options)
end
end
\ No newline at end of file
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment