ci: do not fail signed-repo publish on chmod of gpg signatures

repo-add -s already wrote the signed db; chmod a+r on .sig files
returned EPERM and rolled back the stage dir.
This commit is contained in:
Breadway 2026-08-16 05:35:56 +08:00
parent 055d92cc5a
commit 64aa3611b4

View file

@ -243,8 +243,10 @@ publish_tree() {
parent="$(dirname "$DEST")"
dest_name="$(basename "$DEST")"
mkdir -p "$parent"
chmod a+rX "$STAGE"
find "$STAGE" -type f -exec chmod a+r {} +
chmod a+rX "$STAGE" || true
# gpg --detach-sign often writes 0600 files the runner cannot chmod;
# do not fail the publish after repo-add -s already succeeded.
find "$STAGE" -type f -exec chmod a+r {} + || true
prev="$parent/${dest_name}.prev"
rm -rf "$prev"
if [[ -e "$DEST" ]]; then