Skip to content

Commit

Permalink
[CI/Release] Finalized release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Tunius committed Mar 27, 2018
1 parent 82d18d1 commit 9f005a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
task ci: [:lint, :test]

# task release: :test do
task :release do
task release: :ci do
abort red 'Must be on master branch' unless current_branch == 'master'
abort red 'Must have push access to SKYFloatingLabelTextField on CocoaPods trunk' unless has_trunk_push

Expand Down Expand Up @@ -85,13 +85,13 @@ task :release do
abort red "No entry for version #{version_string} in CHANGELOG.md" unless has_changelog_entry

puts "Comitting, tagging, and pushing"
# message = "[Release] Version #{version_string}"
# sh "git commit -am '#{message}'"
# sh "git tag v#{version_string} -m '#{message}'"
# sh "git push --follow-tags"
message = "[Release] Version #{version_string}"
sh "git commit -am '#{message}'"
sh "git tag v#{version_string} -m '#{message}'"
sh "git push --follow-tags"

# puts "Pushing to CocoaPods trunk."
# sh "bundle exec pod trunk push #{PODSPEC}"
puts "Pushing to CocoaPods trunk."
sh "bundle exec pod trunk push #{PODSPEC}"

puts green("🎉 All went well. Version #{version_string} published.")
end
Expand Down

0 comments on commit 9f005a7

Please sign in to comment.