Skip to content

Commit

Permalink
CD pipeline will push the package to RubyGems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Liang committed Dec 5, 2024
1 parent d435a50 commit fab7129
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 fab7129

Please sign in to comment.