diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb78db2..4dfa28b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Install build dependencies run: | sudo apt-get update -qq - sudo apt-get install -y debhelper dpkg-dev + sudo apt-get install -y debhelper dpkg-dev dpkg-sig - name: Import GPG key env: @@ -72,9 +72,8 @@ jobs: GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} run: | DEB=$(ls ../pve-mod_*.deb) - gpg --batch --armor --detach-sign --local-user "$GPG_KEY_ID" \ - -o "${DEB}.asc" "$DEB" - gpg --batch --verify "${DEB}.asc" "$DEB" + dpkg-sig --sign builder -k "$GPG_KEY_ID" --gpg-options "--batch" "$DEB" + dpkg-sig --verify "$DEB" - name: Generate and sign checksums env: @@ -100,16 +99,14 @@ jobs: run: | DEB=$(ls ../pve-mod_*.deb) echo "deb=$DEB" >> "$GITHUB_OUTPUT" - echo "deb_asc=${DEB}.asc" >> "$GITHUB_OUTPUT" - name: Create GitHub Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG: ${{ steps.version.outputs.tag }} DEB: ${{ steps.assets.outputs.deb }} - DEB_ASC: ${{ steps.assets.outputs.deb_asc }} run: | - ASSETS="$DEB $DEB_ASC /tmp/SHA256SUMS /tmp/SHA256SUMS.asc" + ASSETS="$DEB /tmp/SHA256SUMS /tmp/SHA256SUMS.asc" [[ -f install.sh ]] && ASSETS="$ASSETS install.sh" gh release create "$TAG" \