diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 61% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 19d0d2f..e3889e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -1,29 +1,33 @@ -name: Tests +name: CI on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] - -permissions: - contents: read + branches: + - main jobs: test: + name: ${{ format('Unit tests (Ruby {0})', matrix.ruby-version) }} runs-on: ubuntu-latest strategy: - fail-fast: false matrix: - ruby-version: ['3.1', '3.2', '3.3', '3.4'] + ruby-version: + - "3.1" + - "3.2" + - "3.3" + - "3.4" + continue-on-error: true steps: - uses: actions/checkout@v4 - - name: Set up Ruby + - name: Set up Ruby and install gems uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - - name: Configure git user name, email + - name: Configure Git run: | git config --global user.name $NAME git config --global user.email $EMAIL diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml deleted file mode 100644 index d974f13..0000000 --- a/.github/workflows/push_gem.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Publish gem to RubyGems.org - -on: - push: - tags: - - v* - -jobs: - push: - name: Push gem to RubyGems.org - runs-on: ubuntu-latest - - permissions: - id-token: write - contents: write - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - ruby-version: ruby - - - uses: rubygems/release-gem@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index a804a7b..0579740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ project adheres to [Semantic Versioning][Semver]. - Your contribution here! +## [0.5.1] - 2024-12-27 +### Changed +- Push gems with bundler (not GitHub actions) + ## [0.5.0] - 2024-09-23 ### Removed - Support for Ruby < 3.1 (older rubies no longer supported) diff --git a/README.md b/README.md index 9c46a60..0009f02 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Lolcommits Tranzlate -[![Build](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-tranzlate/build.yml?branch=main&style=flat)](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/build.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/lolcommits/lolcommits-tranzlate/ci.yml?branch=main&style=flat&label=CI)](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/ci.yml) [![Gem](https://img.shields.io/gem/v/lolcommits-tranzlate.svg?style=flat)](http://rubygems.org/gems/lolcommits-tranzlate) [![Depfu](https://img.shields.io/depfu/lolcommits/lolcommits-tranzlate.svg?style=flat)](https://depfu.com/github/lolcommits/lolcommits-tranzlate) @@ -88,7 +88,7 @@ The gem is available as open source under the terms of ## Links -* [CI](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/build.yml) +* [CI](https://github.com/lolcommits/lolcommits-tranzlate/actions/workflows/ci.yml) * [RDoc](http://rdoc.info/projects/lolcommits/lolcommits-tranzlate) * [Issues](http://github.com/lolcommits/lolcommits-tranzlate/issues) * [Report a bug](http://github.com/lolcommits/lolcommits-tranzlate/issues/new) diff --git a/lib/lolcommits/tranzlate/version.rb b/lib/lolcommits/tranzlate/version.rb index 8e60b0f..bc4b0eb 100644 --- a/lib/lolcommits/tranzlate/version.rb +++ b/lib/lolcommits/tranzlate/version.rb @@ -2,6 +2,6 @@ module Lolcommits module Tranzlate - VERSION = "0.5.0".freeze + VERSION = "0.5.1".freeze end end diff --git a/lolcommits-tranzlate.gemspec b/lolcommits-tranzlate.gemspec index c5d27f9..ec74ec1 100644 --- a/lolcommits-tranzlate.gemspec +++ b/lolcommits-tranzlate.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| "allowed_push_host" => "https://rubygems.org" } - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(assets|test|features)/}) } + spec.files = `git ls-files`.split("\n") spec.test_files = `git ls-files -- {test,features}/*`.split("\n") spec.bindir = "bin" spec.executables = []