今までやったことがなかったのだけど、機会があったので記しておく。
今回の題材はこちら yashigani/WebKitPlus
0. (Ownerに登録してなければ) 追加してもらう
https://guides.cocoapods.org/terminal/commands.html#pod_trunk_add_owner
$ pod trunk add-owner WebKitPlus email@email.com
ユーザー登録がまだの場合はこちら -> https://guides.cocoapods.org/terminal/commands.html#pod_trunk_register
1. podspecのバージョン指定をアップデート
https://github.com/yashigani/WebKitPlus/pull/20/files
Pod::Spec.new do |s| s.name = "WebKitPlus" - s.version = "0.3.0" + s.version = "0.3.1"
GitHub上のタグも同じところに打っておくとCarthageと差がなくなってよい https://github.com/yashigani/WebKitPlus/releases/tag/0.3.1
2. pushする
https://guides.cocoapods.org/terminal/commands.html#pod_trunk_push
$ pod trunk push [!] Found podspec `WebKitPlus.podspec` Updating spec repo `master` Validating podspec -> WebKitPlus (0.3.1) Updating spec repo `master` -------------------------------------------------------------------------------- 🎉 Congrats 🚀 WebKitPlus (0.3.1) successfully published 📅 July 6th, 14:15 🌎 https://cocoapods.org/pods/WebKitPlus 👍 Tell your friends! --------------------------------------------------------------------------------