From f942c0febb5e72fc9a42c274f56aa88d65ebabe9 Mon Sep 17 00:00:00 2001 From: Paul Keen <125715+pftg@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:36:52 +0200 Subject: [PATCH] Publish new releases by GitHub Actions (#78) * build: adds release action * build: bump to 1.9.0 --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ lib/capybara/screenshot/diff/version.rb | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..babe6426 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +--- +on: + workflow_dispatch: + +jobs: + push: + name: Push gem to RubyGems.org + runs-on: ubuntu-latest + + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag + + steps: + # Set up + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: ruby + + # Release + - uses: rubygems/release-gem@v1 diff --git a/lib/capybara/screenshot/diff/version.rb b/lib/capybara/screenshot/diff/version.rb index bcbfefcf..20fb2241 100644 --- a/lib/capybara/screenshot/diff/version.rb +++ b/lib/capybara/screenshot/diff/version.rb @@ -3,7 +3,7 @@ module Capybara module Screenshot module Diff - VERSION = "1.8.3" + VERSION = "1.9.0" end end end