logo

dotfiles

My dotfiles, one branch per machine, rebased on base git clone https://anongit.hacktivis.me/git/dotfiles.git/
commit: 129cef3b1eb60eab2a56e81b4fd7c5da0e32498b
parent bbbeb415636b8f1e2fb56bbbd6e12ad7cdd91c7f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 24 Feb 2025 01:47:46 +0100

{minisign-rotate,archive-tags}: use publish-release

Diffstat:

M.local/bin/archive-tags12++++--------
M.local/bin/minisign-rotate4+---
2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/.local/bin/archive-tags b/.local/bin/archive-tags @@ -35,13 +35,9 @@ git tag -l | egrep '^v?[0-9]+\.' | while read -r tag; do touch -d "${date_time}" "${file}.sign" - printf 'Publish %s ? ' "$tag" - if [ "$(read)" = y* ]; then - mkdir -p "${reldir}/${name}/" - cp -p "${file}" "${file}.sign" "${reldir}/${name}/" - - # Changelog - test -f "${file}.txt" && cp -p "${file}.txt" "${reldir}/${name}/" - fi + set -- "${file}" "${file}.sign" + # Changelog/notes + test -f "${file}.txt" && set -- "$@" "${file}.txt" + publish-release --subdir=name "$@" fi done diff --git a/.local/bin/minisign-rotate b/.local/bin/minisign-rotate @@ -7,8 +7,6 @@ getpass() { gpg --decrypt /home/haelwenn/.password-store/minisign.gpg } -reldir="/srv/web/hacktivis.me/releases/signify/" - path_key="${HOME}/.minisign/minisign.sec" path_pub="${HOME}/.minisign/minisign.pub" @@ -62,5 +60,5 @@ else getpass | signify -S -x "${path_next_pub_sig}" -s "${path_cur_key}" -m "${path_next_pub}" # Publish - cp "${path_next_pub}" "${path_next_pub_sig}" "${reldir}" + publish-release --subdir=signify "${path_next_pub}" "${path_next_pub_sig}" fi