From 7bdd99ffdfef69728b4ea4faa4cfbb7421ac7161 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Tue, 29 Aug 2023 12:57:56 -0600 Subject: [PATCH 1/3] add "Publish to RubyGems" step --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c3d25b..d724ffa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,3 +51,11 @@ jobs: artifacts: "${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem" tag: "v${{ env.GEM_VERSION }}" generateReleaseNotes: true + + - name: Publish to RubyGems + run: | + mkdir -p ~/.gem + echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials + chmod 0600 ~/.gem/credentials + gem push ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem + rm ~/.gem/credentials From 017da8f951469995c89f8407cdcabe8035fa67be Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Tue, 29 Aug 2023 12:59:10 -0600 Subject: [PATCH 2/3] bump to test release --- Gemfile.lock | 2 +- lib/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 544d2ab..59f5ae7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - entitlements-github-plugin (0.4.0) + entitlements-github-plugin (0.4.1) contracts (= 0.17.0) faraday (~> 2.0) faraday-retry (~> 2.0) diff --git a/lib/version.rb b/lib/version.rb index 77a4604..9ca6764 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -2,6 +2,6 @@ module Entitlements module Version - VERSION = "0.4.0" + VERSION = "0.4.1" end end From 9a2fdaca6f25f1bd67b4a6dcbe1587ca3e838880 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Tue, 29 Aug 2023 13:44:06 -0600 Subject: [PATCH 3/3] update docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a81b60..6613793 100644 --- a/README.md +++ b/README.md @@ -91,4 +91,4 @@ To release a new version of this Gem, do the following: 2. Run `bundle install` to update the `Gemfile.lock` file with the new version 3. Commit your changes, push them to GitHub, and open a PR -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. +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.