add a publish step for ruby sdk #6269
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Similar to our python publish build step, this adds a workflow for automating publishing ruby gems.
One distinction is that
poetryhas a--skip-existingflag which means that it won't error if an existing package with the same version exists. From what I could tellgem pushdoesn'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