Skip to content

Commit 0039a22

Browse files
authored
Simplify signing process in release workflow
Removed manual signing steps and replaced with debsign command for changes.
1 parent 7a51b2d commit 0039a22

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,9 @@ jobs:
108108
# Build unsigned source package (-us -uc)
109109
debuild -S -sa -d -us -uc
110110
111-
# Sign manually to avoid debsign problems on GitHub Actions
112-
DSC=$(ls ../*.dsc)
113-
CHG=$(ls ../*.changes)
114-
115-
echo "Signing $DSC"
116-
gpg --batch --yes --pinentry-mode loopback \
117-
--passphrase "$PPA_GPG_PASSPHRASE" \
118-
-u "$GPG_KEY_ID" \
119-
--detach-sign --armor "$DSC"
120-
121-
echo "Signing $CHG"
122-
gpg --batch --yes --pinentry-mode loopback \
123-
--passphrase "$PPA_GPG_PASSPHRASE" \
124-
-u "$GPG_KEY_ID" \
125-
--detach-sign --armor "$CHG"
111+
debsign --keyid="$GPG_KEY_ID" --re-sign ../*.changes \
112+
--batch --no-tty \
113+
--passphrase "$PPA_GPG_PASSPHRASE"
126114
127115
ls -l ../*
128116

0 commit comments

Comments
 (0)