ci(release): auto-publish Homebrew tap + WinGet PR on stable releases

オープン
#35 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
github-actions, rust
領域
ci-cd, release

調査の方向性

Start with .github/workflows/release.yml and scripts/render-package-manifests.sh to trace how stable releases render and upload the manifests. Then review the Homebrew tap and WinGet publishing options named in the issue, including the required token permissions. Done when stable releases publish both registries, prereleases skip publishing, and manual rendering remains available.

索引モデルが issue の本文から書いたものです。

説明

github_actions

Context

For v0.1.0 the package registries were seeded manually:

The release.yml workflow already renders both manifest sets (scripts/render-package-manifests.sh) and uploads them as release assets, but it does not publish them anywhere. Every future release currently means repeating the manual steps above with fresh SHAs.

Goal

On each stable (v* without a - suffix) release, automatically:

  1. Homebrew — push the rendered gitnodes.rb to AndreaBozzo/homebrew-tap at Formula/gitnodes.rb.
  2. WinGet — open/refresh the microsoft/winget-pkgs PR for the new version.

Approach

  • Homebrew: add a step to the package-metadata job that commits the rendered formula to the tap repo. Needs a token with contents:write on AndreaBozzo/homebrew-tap (the default GITHUB_TOKEN can't push to another repo).
  • WinGet: use vedantmgoyal9/winget-releaser (community action, submits to winget-pkgs from a fork on release) — or drive wingetcreate update in a step. Either way it needs a PAT that can push to the AndreaBozzo/winget-pkgs fork and open a PR upstream.

Prerequisite (owner action)

Create a fine-grained PAT and add it as an Actions secret (e.g. PACKAGING_TOKEN) with:

  • contents:write on AndreaBozzo/homebrew-tap
  • push access to the AndreaBozzo/winget-pkgs fork (for the WinGet PR)

Acceptance criteria

  • Tagging a stable release updates homebrew-tap/Formula/gitnodes.rb with no manual step.
  • Tagging a stable release opens/updates the winget-pkgs PR automatically.
  • Pre-release tags (-rc, -pre) still skip package publishing (as they skip manifest rendering today).
  • Manual render-package-manifests.sh path remains as a fallback.
主要言語
Rust
スター
5
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AndreaBozzo/gitnodes のほかの issue

AndreaBozzo/gitnodes の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。