From df037fbb82e8db028fdd0f51b1d18a19138de8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Wed, 11 Sep 2024 22:22:30 -0400 Subject: [PATCH] add a release script --- release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 release.sh diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..a99b8ca --- /dev/null +++ b/release.sh @@ -0,0 +1,10 @@ +#/bin/sh +# +# Usage: if you're releasing version 1.2.3, run: +# ./release.sh 1.2.3 +# +# This creates a release archive named bazel-worker-api-v1.2.3.tar.gz. +# Now create a release using GitHub's UI, with tag `v1.2.3` and release name `1.2.3`. Upload this archive as an attachment. Profit! + +VER=$1 +git archive --format=tar --prefix=bazel-worker-api-${VER}/ `git rev-parse HEAD` java proto | gzip > bazel-worker-api-v${VER}.tar.gz