We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30bf4b commit 688100fCopy full SHA for 688100f
codex-rs/scripts/create_github_release.sh
@@ -28,10 +28,19 @@ else
28
VERSION=$(printf '0.0.%d' "$(date +%y%m%d%H%M)")
29
fi
30
TAG="rust-v$VERSION"
31
+RELEASE_BRANCH="release/$TAG"
32
+
33
git checkout -b "$TAG"
34
perl -i -pe "s/^version = \".*\"/version = \"$VERSION\"/" Cargo.toml
35
git add Cargo.toml
36
git commit -m "Release $VERSION"
37
git tag -a "$TAG" -m "Release $VERSION"
38
39
+# The commit identified by the tag must be reachable from a branch so that
40
+# when GitHub creates the `Source code (tar.gz)` for the release, it can find
41
+# the commit. This is a requirement for Homebrew to be able to install the
42
+# package from the tarball.
43
+git push origin "$RELEASE_BRANCH"
44
git push origin "refs/tags/$TAG"
45
46
git checkout "$CURRENT_BRANCH"
0 commit comments