Skip to content

Commit

Permalink
ci: publish to rubygems.org
Browse files Browse the repository at this point in the history
Release-As: 0.1.1
  • Loading branch information
ericnorris committed Jul 6, 2023
1 parent 421d792 commit 44d98db
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 @@ -47,10 +47,19 @@ jobs:
with:
ruby-version: 3.2
bundler-cache: true

- 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 build consulkit.gemspec --output=consulkit.gem
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 44d98db

Please sign in to comment.