From dd71b439916a0329d688ca7c6ff0e670c2301c18 Mon Sep 17 00:00:00 2001 From: Jordan Huizenga Date: Fri, 14 Jan 2022 15:03:10 +1100 Subject: [PATCH] Update push to rubygems CI (#28) * use ruby 2.7 for pushing the gem * force bundler version --- .github/workflows/build.yml | 3 ++- .github/workflows/publish.yml | 6 +++--- lib/moodle_rb/version.rb | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 087718d..ea2ae05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,10 @@ jobs: # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} + bundler: 1.17.3 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests run: bundle exec rspec spec diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 976254d..36b5feb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,10 +14,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Ruby 2.3 - uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e + - name: Set up Ruby 2.7 + uses: ruby/setup-ruby@v1 with: - ruby-version: '2.3' + ruby-version: '2.7' - name: Publish to RubyGems run: | diff --git a/lib/moodle_rb/version.rb b/lib/moodle_rb/version.rb index c2d7a12..61c9a81 100644 --- a/lib/moodle_rb/version.rb +++ b/lib/moodle_rb/version.rb @@ -1,5 +1,5 @@ module MoodleRb - VERSION = '1.1.2' unless defined?(self::VERSION) + VERSION = '1.1.3' unless defined?(self::VERSION) def self.version VERSION