Skip to content

Commit

Permalink
Merge pull request #10 from instantink/gem-push-action
Browse files Browse the repository at this point in the history
Create gem-push.yml
  • Loading branch information
cristianofmc authored Mar 18, 2024
2 parents 3a37184 + 07f7898 commit 0b188c3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Ruby Gem

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: 3.2.0

- name: Build Gem
run: gem build *.gemspec

- name: Publish Gem
uses: cadwallion/publish-rubygems-action@v1
with:
rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- v1.0.5: Fix gem documentation ([@gsguma][])
- v1.0.6: Fix the error when trying to add a rect exclude area that is partially outside the image bounds ([@gsguma][])
- v1.0.7: Fix all code smells and integration tests ([@gsguma][], [@cristianofmc][])
- v2.0.0: Update to work with multiple areas and remove modes (grayscale, rgb, delta) ([@cristianofmc][])

[@gsguma]: https://github.com/gsguma
[@cristianofmc]: https://github.com/cristianofmc
2 changes: 1 addition & 1 deletion lib/image_compare/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ImageCompare
VERSION = "1.0.7"
VERSION = "2.0.0"
end

0 comments on commit 0b188c3

Please sign in to comment.