Skip to content

Conversation

@et
Copy link
Contributor

@et et commented Aug 8, 2023

Summary

Similar to our python publish build step, this adds a workflow for automating publishing ruby gems.

One distinction is that poetry has a --skip-existing flag which means that it won't error if an existing package with the same version exists. From what I could tell gem push doesn't have a equivalent behavior (docs).

How did you test this change?

Before adding a guard for running only on main (if: github.ref == 'refs/heads/main'), I verified that publish complains about the existing version (see build output).

I intend to update the version when adding a service config (#6229) and will be able to confirm that the published version is correctly uploaded to rubygems.

Are there any deployment considerations?

N/A

Copy link
Contributor

@mayberryzane mayberryzane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 thanks for getting that set up!

@et et merged commit 738b321 into main Aug 9, 2023
@et et deleted the et/publish-ruby-step branch August 9, 2023 16:48
et added a commit that referenced this pull request Aug 10, 2023
## Summary

<!--
Ideally, there is an attached GitHub issue that will describe the "why".

If relevant, use this section to call out any additional information
you'd like to _highlight_ to the reviewer.
-->

Adds service name and service version to ruby sdk.

## How did you test this change?

<!--
Frontend - Leave a screencast or a screenshot to visually describe the
changes.
-->

The tests hit a live account which actually makes the testing easier.

```
bundle exec rake
```

Observe log
([permalink](https://app.highlight.io/1394/logs/MjAyMy0wOC0wOVQyMDowNjowNVosOWU1YzY1MDktNWMxZS00ZGJkLWIwNTMtZDE2MGQzZTM2MzQ0)).

![Screenshot 2023-08-09 at 2 07 26
PM](https://github.com/highlight/highlight/assets/58678/181c4e7a-a34e-4691-964c-3a6138c870ee)


## Are there any deployment considerations?

<!--
 Backend - Do we need to consider migrations or backfilling data?
-->

Docs updated and bumped ruby version (should autodeploy now per #6269
but will verify on [rubygems](https://rubygems.org/gems/highlight_io)
after this is merged).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants