From 898c4a0330a27a89e7246fc2bfa536c7d86a67de Mon Sep 17 00:00:00 2001 From: Dustin Blackman Date: Thu, 21 Dec 2023 21:51:07 -0500 Subject: [PATCH] chore: Sign RPM files --- .goreleaser.yml | 3 +++ tools/release.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 107a52d..71386ae 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -78,6 +78,9 @@ nfpms: dst: /usr/share/doc/oatmeal/copyright/THIRDPARTY.html file_info: mode: 0644 + rpm: + signature: + key_file: "{{ .Env.RPM_KEY }}" aurs: - name: oatmeal-bin diff --git a/tools/release.sh b/tools/release.sh index e7fdcf1..7f40a56 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -58,7 +58,7 @@ cargo gha gh run download -D dist-gh "$GH_RUN_ID" fd -t f . './dist-gh' | grep -v -i -E '(dwp|dSYM|pdb)' | xargs -L1 chmod +x # Release to Github -AUR_KEY=$(cat ~/.ssh/aur) cargo gha goreleaser --clean +AUR_KEY=$(cat ~/.ssh/aur) RPM_KEY="$HOME/.gpg/yum-private.key" cargo gha goreleaser --clean cargo bin git-cliff --latest --strip header | cargo bin dprint fmt --stdin md | cargo gha gh release edit "v$OM_VERSION" --notes-file - # Release to package managers not supported by GoReleaser.