Skip to content

Commit

Permalink
Update "s.source.tag" in podspec, use "trunk" to push (#390)
Browse files Browse the repository at this point in the history
- Update "s.source.tag" when releasing a new version
- Use "trunk" to push
  • Loading branch information
Eric Vargas committed Jun 24, 2020
1 parent 9ac1cf0 commit 705405c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ task :release do
sh "git tag -a #{spec_version} -m 'Release #{spec_version}'"
sh "git push origin master"
sh "git push origin --tags"
sh "pod push master #{podspec_path}"
sh "pod trunk push #{podspec_path}"
end

# @return [Pod::Version] The version as reported by the Podspec.
Expand Down Expand Up @@ -158,5 +158,6 @@ end
def replace_version_number(new_version_number)
text = File.read(podspec_path)
text.gsub!(/(s.version( )*= ")#{spec_version}(")/, "\\1#{new_version_number}\\3")
text.gsub!(/(s.source( )*= \{ :git => "https:\/\/github.com\/youtube\/youtube-ios-player-helper\.git", :tag => ")#{spec_version}(")/, "\\1#{new_version_number}\\3")
File.open(podspec_path, "w") { |file| file.puts text }
end
end

0 comments on commit 705405c

Please sign in to comment.