Include release scripts

This commit is contained in:
Jente Hidskes 2021-04-16 14:34:57 +02:00
parent aa91af32a5
commit efaf76e9ab
4 changed files with 84 additions and 0 deletions

12
contrib/sign-release Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -x
project="$(basename "$(pwd)")"
last=$(git describe --tags --abbrev=0)
prefix="$project-${last#v}"
archive="$prefix.tar.gz"
git archive --prefix="$prefix/" -o "$archive" "$last"
gpg --output "$archive".sig --detach-sig "$archive"