Skip to content

Conversation

kenichiice
Copy link
Contributor

I will add the workflow release.yml to handle the release process.

This PR also serves as an experiment, so the release of v1.0.1 will likely be done within this PR.

  • The release process will be triggered when a release tag is assigned.
  • It uses the Trusted Publishing mechanism of RubyGems.org.
  • A GitHub environment named release has been created for the release process.

* this action pushs gem to rubygems.org
@kenichiice
Copy link
Contributor Author

kenichiice commented Mar 25, 2025

タグを付けることでgemのリリースはできたけれど、rubygems.org にあるホームページへのリンクは書き換わっていない...

@kenichiice
Copy link
Contributor Author

ホームページのリンク先の問題は次のissueが関連していそう。

gemspecにmetadataを追加すると更新されるようなコメントもあるが、そのようなことをしなくてもいずれ rubygems.org 側が改善されるのかもしれない。

現状、https://rubygems.org/gems/test-unit-runner-junitxml にある「ホームページ」のリンク先は https://github.com/kenichiice/test-unit-runner-junitxml だが、このURLは https://github.com/test-unit/test-unit-runner-junitxml へリダイレクトされているようなので実質的な問題はなさそう。

なので、この問題はひとまずこのままとしたい。

@kenichiice kenichiice marked this pull request as ready for review March 25, 2025 10:50
@kenichiice
Copy link
Contributor Author

@kou Trusted Publishing を使って RubyGems.org へのリリースを行うworkflowを作成しました。バージョンタグの付与をトリガーとして動作します。workflowは

を参考にして作ったので test-unitのもの とはちょっと違いますが、これで問題なさそうでしょうか?

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

ホームページのリンクは https://github.com/test-unit/test-unit/blob/156139cf70181fc23269b86258ef2fd8283aaff4/test-unit.gemspec#L34-L38 みたいな感じでmetadataで指定しないとダメかも?(この例ではhomepage_uriを使っていませんが。。。)

@kenichiice
Copy link
Contributor Author

ありがとうございます。

metadataの指定を別のPRで行おうと思います。

意味のないバージョンアップを繰り返すのはよくないと思うので、rubygems.org への反映確認は次のリリースの機会まで待とうと思います。

@kenichiice kenichiice merged commit 631d0d1 into master Mar 26, 2025
25 checks passed
@kenichiice kenichiice deleted the trusted-publisher branch March 26, 2025 09:44
@kenichiice kenichiice restored the trusted-publisher branch March 26, 2025 09:44
@kou kou deleted the trusted-publisher branch March 27, 2025 01:00
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.

2 participants