summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-03 12:10:20 +0200
committerErich Eckner <git@eckner.net>2018-05-03 12:10:20 +0200
commitf86b17abb6958b9034f4fc353e38d3188c544f3f (patch)
tree724ba7b859cb37dfcf0098e5cb93459b1baccc7c
parent549144450bb975957b58e3086a396c51bff60b4e (diff)
downloadgithub-api-client-f86b17abb6958b9034f4fc353e38d3188c544f3f.tar.xz
release: put stuff in folder in tarball
-rwxr-xr-xrelease2
1 files changed, 1 insertions, 1 deletions
diff --git a/release b/release
index 17eac93..868b0a8 100755
--- a/release
+++ b/release
@@ -64,7 +64,7 @@ tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir:?}"' EXIT
>&2 printf 'Creating and signing tarball ...'
-git archive "${tag}" | \
+git archive --prefix="${repo}-${tag}/" "${tag}" | \
xz -9 > \
"${tmp_dir}/${repo}-${tag}.tar.xz"
if ! gpg --detach-sign --local-user erich@eckner.net --local-user arch@eckner.net "${tmp_dir}/${repo}-${tag}.tar.xz"; then