Skip to content

Commit

Permalink
Bump to 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Jan 30, 2022
1 parent b7b5949 commit 0e8d506
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruby
name: Run tests

on: [push, pull_request]

Expand All @@ -7,7 +7,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
ruby-version: [2.6]
# ruby-version: [2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
env:
JRUBY_OPTS: "--debug"
steps:
Expand Down
43 changes: 24 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
name: Ruby
name: Release to Rubygems

on:
push:
branches:
- master
workflow_run:
workflows: ["Run tests"]
branches: [master]
types:
- completed

jobs:
release:
name: release
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'Bump to')"
# if: ${{ contains(github.event.head_commit.message, 'Bump to') && github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Install dependencies
run: bundle install
- name: Configure Git
run: |
git config user.email "101073+guilhermef@users.noreply.github.com"
git config user.name "GH actions"
- name: push to RubyGems
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: bundle exec rake release
- name: debug
run: echo "${{toJSON(github.event)}}"
# - uses: actions/checkout@v2
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.1
# - name: Install dependencies
# run: bundle install
# - name: Configure Git
# run: |
# git config user.email "101073+guilhermef@users.noreply.github.com"
# git config user.name "GH actions"
# - name: push to RubyGems
# env:
# GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
# run: bundle exec rake release
2 changes: 1 addition & 1 deletion lib/thumbor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Thumbor
VERSION = '4.0.0'
VERSION = '4.0.1'
end

0 comments on commit 0e8d506

Please sign in to comment.