Sign builds, upload signatures with release artefacts (fixes #97)

This commit is contained in:
Jakob Borg 2014-03-20 17:55:16 +01:00
parent 8db1bf9732
commit 16e1a4397a
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ syncthing
syncthing.exe
*.tar.gz
*.zip
*.asc

View File

@ -24,6 +24,7 @@ tarDist() {
cp syncthing "${distFiles[@]}" "$name"
tar zcvf "$name.tar.gz" "$name"
rm -rf "$name"
gpg -ab "$name.tar.gz"
}
zipDist() {
@ -32,6 +33,7 @@ zipDist() {
cp syncthing.exe "${distFiles[@]}" "$name"
zip -r "$name.zip" "$name"
rm -rf "$name"
gpg -ab "$name.zip"
}
case "$1" in
@ -80,7 +82,7 @@ case "$1" in
upload)
tag=$(git describe)
shopt -s nullglob
for f in *gz *zip ; do
for f in *.tar.gz *.zip *.asc ; do
relup calmh/syncthing "$tag" "$f"
done
;;