Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Gem to rubygems.org

on:
push:
tags:
- v*

jobs:
push:
if: github.repository == 'refinery/refinerycms'
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

steps:
# Set up
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

# Release
- uses: rubygems/release-gem@v1
Comment thread
parndt marked this conversation as resolved.
Outdated
9 changes: 5 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env rake
require "bundler/gem_helper"

begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
Bundler::GemHelper.install_tasks(name: "refinerycms")

%w[core dragonfly images pages resources testing].each do |sub_gem|
Bundler::GemHelper.install_tasks(dir: sub_gem, name: "refinerycms-#{sub_gem}")
end

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
Expand Down
5 changes: 0 additions & 5 deletions core/refinerycms-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,4 @@ Gem::Specification.new do |s|
s.add_dependency 'truncate_html', '~> 0.9'
s.add_dependency 'will_paginate', '~> 3.1', '>= 3.1.0'
s.add_dependency 'zilch-authorisation', '~> 0', '>= 0.0.1'

s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
5 changes: 0 additions & 5 deletions dragonfly/refinerycms-dragonfly.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ Gem::Specification.new do |s|
s.add_dependency 'dragonfly', '~> 1.4'
s.add_development_dependency 'dragonfly-s3_data_store'
s.add_dependency 'refinerycms-core', ['~> 4.0', '>= 4.0.2']

s.cert_chain = [File.expand_path("../../certs/parndt.pem", __FILE__)]
if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
end
end
5 changes: 0 additions & 5 deletions images/refinerycms-images.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,4 @@ Gem::Specification.new do |s|
s.add_dependency 'refinerycms-dragonfly', '~> 1.0'

s.required_ruby_version = Refinery::Version.required_ruby_version

s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
5 changes: 0 additions & 5 deletions pages/refinerycms-pages.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,4 @@ Gem::Specification.new do |s|
s.add_dependency 'speakingurl-rails', '~> 8.0', '>= 8.0.0'

s.required_ruby_version = Refinery::Version.required_ruby_version

s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
5 changes: 0 additions & 5 deletions refinerycms.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,4 @@ Gem::Specification.new do |s|

s.add_development_dependency 'rspec-rails'
s.required_ruby_version = Refinery::Version.required_ruby_version

s.cert_chain = [File.expand_path('certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
5 changes: 0 additions & 5 deletions resources/refinerycms-resources.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,4 @@ Gem::Specification.new do |s|
s.add_dependency 'refinerycms-dragonfly', '~> 1.0'

s.required_ruby_version = Refinery::Version.required_ruby_version

s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
5 changes: 0 additions & 5 deletions testing/refinerycms-testing.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ Gem::Specification.new do |s|
s.add_dependency 'selenium-webdriver', '>= 2.46.0'

s.required_ruby_version = Refinery::Version.required_ruby_version

s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end