Skip to content

Commit

Permalink
feat: publish to rubygems.org
Browse files Browse the repository at this point in the history
This is really a `ci` commit, but release-please won't actually cut a PR
unless there is a "user-facing" change in the changelog.
  • Loading branch information
ericnorris committed Jul 6, 2023
1 parent 421d792 commit 19ad9d9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,18 @@ jobs:
ruby-version: 3.2
bundler-cache: true

- name: Publish gem to GitHub Packages
- name: Build gem
run: |
gem build consulkit.gemspec --output=consulkit.gem
- name: Publish gem to rubygems.org
run: |
gem push consulkit.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"

- name: Publish gem to GitHub Packages
run: |
gem push --host "https://rubygems.pkg.github.com/$GITHUB_REPOSITORY_OWNER" consulkit.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"

0 comments on commit 19ad9d9

Please sign in to comment.