Skip to content

Commit

Permalink
Add workflow to release gem via GitHub Actions (#179)
Browse files Browse the repository at this point in the history
Merge pull request 179
  • Loading branch information
ashmaroli authored Dec 5, 2024
1 parent eed99fd commit 5549ab5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Gem

on:
push:
branches: ["master"]
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@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: "jekyll-archives"
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}

0 comments on commit 5549ab5

Please sign in to comment.