Skip to content

Commit de198c7

Browse files
authored
trusted publishing (#188)
1 parent a9043cb commit de198c7

File tree

7 files changed

+45
-33
lines changed

7 files changed

+45
-33
lines changed

.github/workflows/push.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Push Gem
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
push:
13+
if: github.repository_owner == 'karafka'
14+
runs-on: ubuntu-latest
15+
environment: deployment
16+
17+
permissions:
18+
contents: write
19+
id-token: write
20+
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@1a0ff446f5856bdfec298b61a09727c860d9d480 # v1.240.0
28+
with:
29+
bundler-cache: false
30+
31+
- name: Bundle install
32+
run: |
33+
bundle install --jobs 4 --retry 3
34+
35+
# Release
36+
- uses: rubygems/release-gem@9e85cb11501bebc2ae661c1500176316d3987059 # v1

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Karafka Core Changelog
22

3+
## 2.5.1 (2025-05-23)
4+
- [Change] Move to trusted-publishers and remove signing since no longer needed.
5+
36
## 2.5.0 (2025-05-21)
47
- [Change] Set minimum `karafka-rdkafka` on `0.19.2` to support new features.
58

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
karafka-core (2.5.0)
4+
karafka-core (2.5.1)
55
karafka-rdkafka (>= 0.19.2, < 0.21.0)
66
logger (>= 1.6.0)
77

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# frozen_string_literal: true
2+
3+
require 'bundler/setup'
4+
require 'bundler/gem_tasks'

certs/cert.pem

Lines changed: 0 additions & 26 deletions
This file was deleted.

karafka-core.gemspec

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ Gem::Specification.new do |spec|
2121

2222
spec.required_ruby_version = '>= 3.1.0'
2323

24-
if $PROGRAM_NAME.end_with?('gem')
25-
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
26-
end
27-
28-
spec.cert_chain = %w[certs/cert.pem]
2924
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
3025
spec.require_paths = %w[lib]
3126

lib/karafka/core/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ module Karafka
44
module Core
55
# Current Karafka::Core version
66
# We follow the versioning schema of given Karafka version
7-
VERSION = '2.5.0'
7+
VERSION = '2.5.1'
88
end
99
end

0 commit comments

Comments
 (0)