Fix updating the repository for arch

GPG will refuse to overwrite already existing signatures, so remove
them before signing.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
This commit is contained in:
Dorian Stoll 2020-01-30 18:12:55 +01:00
parent d96fe6b277
commit 255b82b08a
No known key found for this signature in database
GPG key ID: F1DACD02C619442A
2 changed files with 12 additions and 0 deletions

View file

@ -108,6 +108,12 @@ jobs:
# Sign the updated repository
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
if [ -f 'linux-surface.db.sig' ]; then
rm linux-surface.db.sig
rm linux-surface.db.tar.gz.sig
rm linux-surface.files.sig
rm linux-surface.files.tar.gz.sig
fi
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db.tar.gz
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.files

View file

@ -108,6 +108,12 @@ jobs:
# Sign the updated repository
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
if [ -f 'linux-surface.db.sig' ]; then
rm linux-surface.db.sig
rm linux-surface.db.tar.gz.sig
rm linux-surface.files.sig
rm linux-surface.files.tar.gz.sig
fi
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db.tar.gz
gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.files