Skip to content

Commit

Permalink
ci: fix release steps
Browse files Browse the repository at this point in the history
Signed-off-by: Max VelDink <[email protected]>
  • Loading branch information
maxveldink committed May 14, 2024
1 parent 6b63b49 commit d014191
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
default-branch: main
signoff: "OpenFeature Bot <[email protected]>"

- name: Dump Release Please Output
env:
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
run: |
echo "$RELEASE_PLEASE_OUTPUT"
outputs:
all: ${{ toJSON(steps.release.outputs) }}
paths_released: ${{ steps.release.outputs.paths_released }}
Expand All @@ -48,12 +42,23 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: ${{ env.TAG }}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# TODO see if the ruby version matter for publishing
# ruby-version: ${{ matrix.ruby-version }}
ruby-version: 3.3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

## TODO add a step to publish the gem
- name: Release Gem
run: |
gem install bundler
bundle config unset deployment
bundle install
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${RUBY_GEM_API_TOKEN}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
RUBY_GEM_API_TOKEN: "${{secrets.RUBY_GEM_API_TOKEN}}"

0 comments on commit d014191

Please sign in to comment.