Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use trusted gem publishing #544

Closed
kachick opened this issue May 21, 2024 · 7 comments · Fixed by #597
Closed

Use trusted gem publishing #544

kachick opened this issue May 21, 2024 · 7 comments · Fixed by #597

Comments

@kachick
Copy link
Owner

kachick commented May 21, 2024

https://blog.rubygems.org/2023/12/14/trusted-publishing.html

@kachick kachick added this to 🛸 May 21, 2024
@github-project-automation github-project-automation bot moved this to 🙋‍♂ in 🛸 May 21, 2024
@kachick kachick moved this from 🙋‍♂ to 💪 in 🛸 May 21, 2024
@kachick kachick moved this from 💪 to 🙋‍♂ in 🛸 Jun 9, 2024
@kachick kachick moved this from 🙋‍♂ to 🤷‍♂️ in 🛸 Jun 13, 2024
@kachick kachick moved this from 🤷‍♂️ to 🙋‍♂ in 🛸 Aug 28, 2024
@kachick
Copy link
Owner Author

kachick commented Aug 28, 2024

kachick added a commit that referenced this issue Aug 28, 2024
kachick added a commit that referenced this issue Aug 28, 2024
* Add validation task to build gem

Preparation part for GH-544

* Fix validation error in gem strict build with removing conflict meta
kachick added a commit that referenced this issue Aug 28, 2024
Might be a preparation part for GH-544
@kachick
Copy link
Owner Author

kachick commented Aug 28, 2024

@kachick
Copy link
Owner Author

kachick commented Aug 28, 2024

@kachick
Copy link
Owner Author

kachick commented Aug 28, 2024

This is a getting built filename, looks reasonable for me

> gem build --strict --norc --backtrace ruby-ulid.gemspec | ruby -e 'puts STDIN.read.slice(/\bFile: (ruby-ulid-\S+?\.gem)$/, 1)'
ruby-ulid-0.9.0.beta1.gem

And split workflow as build(always run) and release(guard with tagged, needs other CI completed)

@kachick kachick moved this from 🙋‍♂ to 💪 in 🛸 Aug 28, 2024
@kachick
Copy link
Owner Author

kachick commented Aug 28, 2024

image
9cbf315...v0.9.0

https://rubygems.org/gems/ruby-ulid/
https://github.com/kachick/ruby-ulid/actions/runs/10595950065/job/29362913372

Worked after these changes 😂

gem push 'release-assets/ruby-ulid-0.9.0.gem'
  shell: /usr/bin/bash -e {0}
  env:
    RUBYGEMS_API_KEY: ***
    BUNDLE_GEM__PUSH_KEY: ***
    GEM_HOST_API_KEY: ***
  
Pushing gem to https://rubygems.org.../
Successfully registered gem: ruby-ulid (0.[9](https://github.com/kachick/ruby-ulid/actions/runs/10595950065/job/29362913372#step:7:10).0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant