Skip to content

Commit

Permalink
add a release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyverald committed Sep 12, 2024
1 parent c66f34b commit df037fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df037fb

Please sign in to comment.