From 9b97744621f3567147f43d02e616f806ef37f867 Mon Sep 17 00:00:00 2001 From: Michal Checinski Date: Fri, 23 Feb 2024 16:38:32 +0100 Subject: [PATCH] Build gem --- .github/workflows/publish-ruby.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-ruby.yml b/.github/workflows/publish-ruby.yml index 4c60c5395..31aa84080 100644 --- a/.github/workflows/publish-ruby.yml +++ b/.github/workflows/publish-ruby.yml @@ -123,13 +123,17 @@ jobs: run: bundle install working-directory: languages/ruby/bitwarden_sdk_secrets + - name: Build gem + run: gem build bitwarden-sdk.gemspec + working-directory: languages/ruby/bitwarden_sdk_secrets + - name: Push gem to Rubygems run: | mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials - gem push pkg/*.gem + gem push *.gem env: GEM_HOST_API_KEY: ${{ steps.retrieve-secrets.outputs.rubygem-api-key }} working-directory: languages/ruby/bitwarden_sdk_secrets