Sha256: f13301135b0c1e861c418bb179c5471090cd89d8d3750d0595630d73a3d3da5a

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

desc 'Publish a release of this project.'
task :pub => %w[ 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

1 entries across 1 versions & 1 rubygems

Version Path
inochi-6.0.1 lib/inochi/tasks/5-pub.rake