Skip to content

Commit

Permalink
Merge pull request #3 from cfe-lab/CDPushToRubyGems
Browse files Browse the repository at this point in the history
CD pipeline will push the package to RubyGems.
  • Loading branch information
va7eex authored Dec 5, 2024
2 parents d435a50 + fab7129 commit 163b157
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_and_publish_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
env: |
CFE_GOTOH_VERSION
- name: Publish gem to Github Packages
- name: Publish gem to GitHub Packages
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
Expand All @@ -43,6 +43,11 @@ jobs:
env:
OWNER: ${{ github.repository_owner }}

- name: Publish gem to RubyGems
run: gem push ${BUILD_PATH}/*.gem
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}

- name: Add gem as a release asset
run: gh release upload $CFE_GOTOH_VERSION ${BUILD_PATH}/*.gem
env:
Expand Down

0 comments on commit 163b157

Please sign in to comment.