Skip to content

Commit

Permalink
Bump version to 0.2.0 (#44)
Browse files Browse the repository at this point in the history
* Bump version to 0.2.0
  • Loading branch information
wzxha authored Mar 1, 2024
1 parent 9c9300d commit 62bec47
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion AliyunpanSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "AliyunpanSDK"
spec.version = "0.1.19"
spec.version = "0.2.0"
spec.summary = "Aliyunpan OpenSDK-iOS"

spec.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3 align="center">AliyunpanSDK</h3>
<p align="center">
<a href="https://cocoapods.org/pods/AliyunpanSDK"><img src="https://img.shields.io/cocoapods/v/AliyunpanSDK?color=%23526efa"/></a>
<a><img src="https://img.shields.io/badge/Platforms-macOS_iOS_tvOS-Green"/></a>
<a><img src="https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_visionOS-Green"/></a>
</p>

<p align="center">
Expand Down
2 changes: 1 addition & 1 deletion Sources/AliyunpanSDK/AliyunpanSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ public class Aliyunpan {
}
}

let version = "0.1.19"
let version = "0.2.0"
2 changes: 1 addition & 1 deletion Sources/AliyunpanSDK/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.19</string>
<string>0.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
33 changes: 18 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ platform :ios do
destination: options[:destination]
)
end

desc "Release new version"
lane :release do |options|

lane :bumpVersion do |options|
target_version = options[:version]
ensure_git_branch(
branch: 'main'
)
ensure_git_status_clean

if target_version.nil?
increment_version_number(version_number: target_version)
else
increment_version_number
target_version = get_version_number
else
increment_version_number(version_number: target_version)
end
target_version = get_version_number
version_bump_podspec(path: "AliyunpanSDK.podspec", version_number: target_version)

Actions.sh("sed -i '' 's/let version = \"[^\"]*\"/let version = \"#{target_version}\"/g' ../Sources/AliyunpanSDK/AliyunpanSDK.swift")
Expand All @@ -37,20 +32,28 @@ platform :ios do
message = "Bump version to #{target_version}"
Action.sh "git add -A"
Actions.sh "git commit -am \"#{message}\""
end

desc "Release new version"
lane :release do |options|
ensure_git_status_clean

ensure_git_branch(
branch: 'main'
)

target_version = options[:version]

# git tag
Actions.sh("git tag v#{target_version}")

push_to_git_remote(
tags: false
)
Actions.sh("git push origin v#{target_version}")

sh('git fetch --tags')

most_recent_tags = sh("git tag --sort=-version:refname | head -2").split("\n").reverse()
release_log = sh("git log --pretty=format:'- %s' #{most_recent_tags[0]}...#{most_recent_tags[1]}")

Actions.sh("git push origin v#{target_version}")

xcframework(version: target_version)
set_github_release(
repository_name: "alibaba/aliyunpan-ios-sdk",
Expand Down

0 comments on commit 62bec47

Please sign in to comment.