mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
chore: fix Rust release process so generated .tar.gz source works with Homebrew
This commit is contained in:
@@ -28,10 +28,19 @@ else
|
||||
VERSION=$(printf '0.0.%d' "$(date +%y%m%d%H%M)")
|
||||
fi
|
||||
TAG="rust-v$VERSION"
|
||||
RELEASE_BRANCH="release/$TAG"
|
||||
|
||||
git checkout -b "$TAG"
|
||||
perl -i -pe "s/^version = \".*\"/version = \"$VERSION\"/" Cargo.toml
|
||||
git add Cargo.toml
|
||||
git 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 `Soruce 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"
|
||||
|
||||
Reference in New Issue
Block a user