From d4f4902ef11cdbc5c6eb0c516cbba1817f0d544b Mon Sep 17 00:00:00 2001 From: Khalil Kum Date: Fri, 28 Jul 2023 14:56:07 -0400 Subject: [PATCH] ci: Update publish action (#18) --- .github/workflows/publish.yaml | 7 +++++-- .github/workflows/release-please.yaml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7c05259..5950edd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,6 +9,9 @@ on: gem_version: required: true type: string + gem_name: + required: true + type: string jobs: release: name: Release gem @@ -34,5 +37,5 @@ jobs: - name: Push to Rubygems if: inputs.publish == 'true' run: | - gem build "./httpigeon.gemspec --output=httpigeon-${{ inputs.gem_version }}.gem" - gem push --verbose --key github --host https://rubygems.pkg.github.com/dailypay "httpigeon-${{ inputs.gem_version }}.gem" + gem build "./${{ inputs.gem_name }}.gemspec" + gem push --verbose --key github --host https://rubygems.pkg.github.com/dailypay "${{ inputs.gem_name }}-${{ inputs.gem_version }}.gem" diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 6e18139..6e4f79c 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -29,3 +29,4 @@ jobs: with: publish: 'true' gem_version: "${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }}.${{ needs.release-please.outputs.patch }}" + gem_name: "${{ github.event.repository.name }}"