-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Max VelDink <[email protected]>
- Loading branch information
1 parent
6b63b49
commit d014191
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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}}" |