If you have not installed Fastlane before, please install fastlane first.
Create a fastlane
folder in the root folder of your project and create a Fastfile
file in this folder, simply add the following line to your Fastfile:
import_from_git(url: 'https://github.com/ripperhe/fastlane-files', branch: 'master')
Enter the root directory of your project, and then, enter the following command at the terminal:
$ fastlane release_pod project:"project name" version:"new version"
Add your private spec repo. Clones URL
in the local spec-repos directory at ~/.cocoapods/repos/
. The remote can later be referred to by NAME
.
$ pod repo add NAME URL [BRANCH]
Enter the root directory of your project, and then, enter the following command at the terminal:
$ fastlane release_pod repo:"your private sepc repo name" project:"project name" version:"new version"
If you want to add commit information, you can add this parameter:
$ fastlane release_pod project:"project name" version:"new version" desc:"commit information"
ripperhe, ripperhe@qq.com
Fastlane-files is available under the MIT license. See the LICENSE file for more info.