Skip to content

Commit

Permalink
Fix repository setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davalpargal committed Jan 18, 2022
1 parent b757527 commit 4dd7e95
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,31 @@ jobs:
working-directory: clients/js
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-ruby-client:
runs-on: ubuntu-latest
needs: create-release
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: 2.6
- run: bundle install
working-directory: clients/ruby
- name: Publish 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 build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
working-directory: clients/ruby
publish-server:
runs-on: ubuntu-latest
needs: create-release
Expand Down
1 change: 1 addition & 0 deletions clients/ruby/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -euo pipefail
IFS=$'\n\t'
set -vx

gem install bundler:1.17.3
bundle install

# Do any other automated setup that you need to do here

0 comments on commit 4dd7e95

Please sign in to comment.