Skip to content

Commit

Permalink
Publish to RubyGems via GitHub actions. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes authored Sep 6, 2024
1 parent 4eadd0c commit 8c6cbe4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Gem

on:
push:
tags:
- '**'

jobs:
release:
name: Release new version of ConfigSL
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- run: echo "Releasing configsl-${{ github.ref_name }}"
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Push to rubygems
uses: rubygems/release-gem@v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ConfigSL [![Coverage Status][badge-coverage]][coverage]
# ConfigSL [![Gem Version](https://badge.fury.io/rb/configsl.svg)](https://badge.fury.io/rb/configsl) [![Coverage Status][badge-coverage]][coverage]

ConfigSL is a simple Domain-Specific Language (DSL) module for configuration.
It is designed to provide a declarative way to define configuration, with as few
Expand Down
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# frozen_string_literal: true

require 'bundler'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

task default: %i[spec rubocop]

Bundler::GemHelper.install_tasks

RuboCop::RakeTask.new(:rubocop) do |task|
task.requires << 'rubocop'
end
Expand Down

0 comments on commit 8c6cbe4

Please sign in to comment.