Lightweight coding agent that runs in your terminal
Rust
chore: fix Rust release process so generated .tar.gz source works with Homebrew (#1423)
Michael Bolin688100f7f430
diff --git a/codex-rs/scripts/create_github_release.sh b/codex-rs/scripts/create_github_release.shindex 2ade252ce7..b08dab6095 100755--- a/codex-rs/scripts/create_github_release.sh+++ b/codex-rs/scripts/create_github_release.sh@@ -28,10 +28,19 @@ elseVERSION=$(printf '0.0.%d' "$(date +%y%m%d%H%M)")fiTAG="rust-v$VERSION"+RELEASE_BRANCH="release/$TAG"+git checkout -b "$TAG"perl -i -pe "s/^version = \".*\"/version = \"$VERSION\"/" Cargo.tomlgit add Cargo.tomlgit commit -m "Release $VERSION"git tag -a "$TAG" -m "Release $VERSION"++# The commit identified by the tag must be reachable from a branch so that+# when GitHub creates the `Source code (tar.gz)` for the release, it can find+# the commit. This is a requirement for Homebrew to be able to install the+# package from the tarball.+git push origin "$RELEASE_BRANCH"git push origin "refs/tags/$TAG"+git checkout "$CURRENT_BRANCH"