diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f925e63..b245c73 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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}}"