-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7b5949
commit 0e8d506
Showing
3 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |