Skip to content

Commit

Permalink
Backport #8830 for v4.2.x: Add a workflow to build gems consistently (#…
Browse files Browse the repository at this point in the history
…8869)

Add a workflow to build gems consistently
This backports db3f034 to 4.2-stable
  • Loading branch information
ashmaroli committed Dec 9, 2021
1 parent f2ecf63 commit 202c555
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,34 @@
name: Release Gem

on:
push:
branches:
- master
- "*-stable"
paths:
- "lib/**/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:
- 2.7
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- 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: jekyll
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}
1 change: 1 addition & 0 deletions History.markdown
Expand Up @@ -6,6 +6,7 @@

### Development Fixes

* Backport #8830 for v4.2.x: Add a workflow to build gems consistently (#8869)
* Lock `rubocop-performance` to `v1.11.x`.

## 4.2.1 / 2021-09-27
Expand Down

0 comments on commit 202c555

Please sign in to comment.