Skip to content

Commit

Permalink
Release gem from 2.5-stable via GitHub Actions (#802)
Browse files Browse the repository at this point in the history
Merge pull request 802
  • Loading branch information
ashmaroli authored Sep 6, 2024
1 parent 325915f commit c6e74bb
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Gem

on:
push:
branches:
- "2.5-stable"
paths:
- "theme_version.rb"

jobs:
release:
if: "github.repository_owner == 'jekyll'"
name: "Release Gem (Ruby ${{ matrix.ruby_version }})"
runs-on: "ubuntu-latest"
strategy:
fail-fast: true
matrix:
ruby_version: [ "3.3" ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: "Set up Ruby ${{ matrix.ruby_version }}"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Build and Publish Gem
uses: ashmaroli/release-gem@dist
with:
gemspec_name: minima
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}
7 changes: 5 additions & 2 deletions minima.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

require_relative "theme_version"

Gem::Specification.new do |spec|
spec.name = "minima"
spec.version = "2.5.1"
spec.version = Minima::VERSION
spec.authors = ["Joel Glovier"]
spec.email = ["[email protected]"]

Expand All @@ -16,8 +18,9 @@ Gem::Specification.new do |spec|
f.match(%r!^(assets|_(includes|layouts|sass)/|(LICENSE|README)((\.(txt|md|markdown)|$)))!i)
end

spec.required_ruby_version = ">= 2.7.0"

spec.add_runtime_dependency "jekyll", ">= 3.5", "< 5.0"
spec.add_runtime_dependency "jekyll-feed", "~> 0.9"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1"
spec.add_development_dependency "bundler", ">= 1.15"
end
5 changes: 5 additions & 0 deletions theme_version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module Minima
VERSION = "2.5.2"
end

0 comments on commit c6e74bb

Please sign in to comment.