diff --git a/.github/workflows/rubygems.yml b/.github/workflows/rubygems.yml index 5506b9e..4349f50 100644 --- a/.github/workflows/rubygems.yml +++ b/.github/workflows/rubygems.yml @@ -2,31 +2,34 @@ name: Ruby Gem on: push: - tags: - - '*' + branches: + - master + paths: + - lib/activejob/traceable/version.rb jobs: build: name: Build and publish runs-on: ubuntu-latest + environment: master permissions: contents: read packages: write steps: - - uses: actions/checkout@v3 - - name: Set up Ruby 3.2 - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.2.2 + - uses: actions/checkout@v3 + - name: Set up Ruby 3.2 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2.2 - - name: Publish to RubyGems - run: | - mkdir -p $HOME/.gem - touch $HOME/.gem/credentials - chmod 0600 $HOME/.gem/credentials - printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem build *.gemspec - gem push *.gem - env: - GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" + - name: Publish to RubyGems + run: | + mkdir -p $HOME/.gem + touch $HOME/.gem/credentials + chmod 0600 $HOME/.gem/credentials + printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials + gem build *.gemspec + gem push *.gem + env: + GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" diff --git a/README.md b/README.md index 60c03ce..839b4e2 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/qonto/ ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). + +# Releasing + +To publish a new version to rubygems, update the version in `lib/activejob/traceable/version.rb`, and merge. diff --git a/lib/activejob/traceable/version.rb b/lib/activejob/traceable/version.rb index 42d3b3b..2530111 100644 --- a/lib/activejob/traceable/version.rb +++ b/lib/activejob/traceable/version.rb @@ -2,6 +2,6 @@ module ActiveJob module Traceable - VERSION = '0.4.0' + VERSION = '0.4.1' end end