summaryrefslogtreecommitdiffstats
path: root/.github/scripts/deb-sign.sh
blob: 3858411d43c5dceb97f50353f3a4c119b886003d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e

pkgdir="${1}"
keyid="${2}"

echo "::group::Installing Dependencies"
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y debsigs
echo "::endgroup::"

echo "::group::Signing packages"
debsigs --sign=origin --default-key="${keyid}" "${pkgdir}"/*.{,d}deb
echo "::endgroup::"