blob: a99b8ca8ecc5c96813d2a2ded0b6837fd5ad8001 [file]
#/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