Skip to content

Commit 2a367f8

Browse files
authored
Merge pull request #22 from github/publish-to-rubygems-in-ci
Publish to rubygems in ci
2 parents 536fbb7 + 9a2fdac commit 2a367f8

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
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

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-
entitlements-github-plugin (0.4.0)
4+
entitlements-github-plugin (0.4.1)
55
contracts (= 0.17.0)
66
faraday (~> 2.0)
77
faraday-retry (~> 2.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ To release a new version of this Gem, do the following:
9191
2. Run `bundle install` to update the `Gemfile.lock` file with the new version
9292
3. Commit your changes, push them to GitHub, and open a PR
9393
94-
Once your PR is approved and the changes are merged, a new release will be created automatically by the [`release.yml`](.github/workflows/release.yml) workflow. The latest version of the Gem will be published to the GitHub Package Registry.
94+
Once your PR is approved and the changes are merged, a new release will be created automatically by the [`release.yml`](.github/workflows/release.yml) workflow. The latest version of the Gem will be published to the GitHub Package Registry and RubyGems.

lib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Entitlements
44
module Version
5-
VERSION = "0.4.0"
5+
VERSION = "0.4.1"
66
end
77
end

0 commit comments

Comments
 (0)