Skip to content

Commit

Permalink
ci: Update publish action (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
2k-joker authored Jul 28, 2023
1 parent 1893163 commit d4f4902
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
gem_version:
required: true
type: string
gem_name:
required: true
type: string
jobs:
release:
name: Release gem
Expand All @@ -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"
1 change: 1 addition & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit d4f4902

Please sign in to comment.