Sign builds, upload signatures with release artefacts (fixes #97)
This commit is contained in:
parent
8db1bf9732
commit
16e1a4397a
|
@ -2,3 +2,4 @@ syncthing
|
|||
syncthing.exe
|
||||
*.tar.gz
|
||||
*.zip
|
||||
*.asc
|
||||
|
|
4
build.sh
4
build.sh
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue