Sha256: 309e52ce10d77fc21bbc4f6bb1bbd16197898e97483486a2db69c87b288ed7f0
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
desc 'Publish a release of this project.' task :pub => %w[ ann pub:gem pub:web ] #----------------------------------------------------------------------------- # RubyGems #----------------------------------------------------------------------------- desc 'Publish gem release package to RubyGems.org.' task 'pub:gem' do Rake::Task[:gem].invoke unless File.exist? @project_gem_file sh 'gem', 'push', @project_gem_file end #----------------------------------------------------------------------------- # website #----------------------------------------------------------------------------- desc 'Publish help manual, API docs, and RSS feed to project website.' task 'pub:web' do if target = @project_config[:pub_web_target] options = @project_config[:pub_web_options] sources = [@man_html_dst, @api_dir, @ann_feed_dst, @project_config[:pub_web_extras]].compact # build the sources if necessary sources.each {|s| Rake::Task[s].invoke } sh ['rsync', options, sources, target].join(' ') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inochi-6.1.0 | lib/inochi/tasks/5-pub.rake |
inochi-6.0.2 | lib/inochi/tasks/5-pub.rake |