@@ -108,30 +108,30 @@ jobs:
108108 # with:
109109 # packages-dir: ./generator_python/package/dist/
110110
111- # - name: Ruby - Set up
112- # uses: ruby/setup-ruby@v1
113- # with:
114- # ruby-version: '3.0'
115- # bundler-cache: true
116- #
117- # - name: Ruby - Build Gem
118- # working-directory: ./generator_ruby/gem/
119- # run: |
120- # GEM_VERSION=${{ env.RELEASE_VERSION }}
121- # export GEM_VERSION=${GEM_VERSION//+/.}
122- # gem build hubsante_model.gemspec
123- #
124- # - name: Ruby - Upload Gem as artifact
125- # uses: actions/upload-artifact@v4
126- # with:
127- # name: ruby-gem-artifact
128- # path: ./generator_ruby/gem/hubsante_model-*.gem
129- #
130- # - name: Ruby - Push Gem to GitHub Packages
131- # working-directory: ./generator_ruby/gem/
132- # run: gem push --key github --host https://rubygems.pkg.github.com/ansforge ./hubsante_model-*.gem
133- # env:
134- # GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }} # GitHub token used to authenticate
111+ - name : Ruby - Set up
112+ uses : ruby/setup-ruby@v1
113+ with :
114+ ruby-version : ' 3.0'
115+ bundler-cache : true
116+
117+ - name : Ruby - Build Gem
118+ working-directory : ./generator_ruby/gem/
119+ run : |
120+ GEM_VERSION=${{ env.RELEASE_VERSION }}
121+ export GEM_VERSION=${GEM_VERSION//+/.}
122+ gem build hubsante_model.gemspec
123+
124+ - name : Ruby - Upload Gem as artifact
125+ uses : actions/upload-artifact@v4
126+ with :
127+ name : ruby-gem-artifact
128+ path : ./generator_ruby/gem/hubsante_model-*.gem
129+
130+ - name : Ruby - Push Gem to GitHub Packages
131+ working-directory : ./generator_ruby/gem/
132+ run : gem push --key github --host https://rubygems.pkg.github.com/ansforge ./hubsante_model-*.gem
133+ env :
134+ GEM_HOST_API_KEY : ${{ secrets.GITHUB_TOKEN }} # GitHub token used to authenticate
135135
136136 # - name: C# - Prepare package files
137137 # working-directory: ./generator_csharp/
0 commit comments