Skip to content

Commit 61b641e

Browse files
authored
Merge pull request #5 from github/publish-to-rubygems
Publish to rubygems
2 parents 8ce5cc2 + 22f3613 commit 61b641e

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ jobs:
5151
artifacts: "${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem"
5252
tag: "v${{ env.GEM_VERSION }}"
5353
generateReleaseNotes: true
54+
55+
- name: publish to RubyGems
56+
run: |
57+
mkdir -p ~/.gem
58+
echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
59+
chmod 0600 ~/.gem/credentials
60+
gem push ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
61+
rm ~/.gem/credentials

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ A redacting Ruby logger to prevent the leaking of secrets via logs
1010

1111
## Installation 💎
1212

13-
You can download this Gem from [GitHub Packages](https://github.com/github/redacting-logger/pkgs/rubygems/redacting-logger)
13+
You can download this Gem from [GitHub Packages](https://github.com/github/redacting-logger/pkgs/rubygems/redacting-logger) or [RubyGems](https://rubygems.org/gems/redacting-logger)
1414

1515
Via a Gemfile:
1616

1717
```ruby
18-
# frozen_string_literal: true
19-
2018
source "https://rubygems.org"
2119

22-
source "https://rubygems.pkg.github.com/github" do
23-
gem "redacting-logger", "~> X.X.X" # Replace X.X.X with the latest version
24-
end
20+
gem "redacting-logger", "~> X.X.X" # Replace X.X.X with the latest version
2521
```
2622

2723
## Usage 💻

redacting-logger.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ require_relative "lib/version"
55
Gem::Specification.new do |spec|
66
spec.name = "redacting-logger"
77
spec.version = RedactingLogger::Version::VERSION
8-
spec.authors = ["Grant Birkinbine"]
9-
spec.email = "grant.birkinbine@gmail.com"
8+
spec.authors = ["GitHub", "GitHub Security"]
9+
spec.email = "opensource@github.com"
1010
spec.license = "MIT"
1111

1212
spec.summary = "A redacting Ruby logger to prevent the leaking of secrets via logs"

0 commit comments

Comments
 (0)