Skip to content

Commit 828b725

Browse files
committed
fix: convert sig to asc
1 parent f663f99 commit 828b725

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,19 @@ jobs:
116116
unzip 1.zip || true
117117
rm 1.zip
118118
cd ..
119-
# Copy .asc files next to their corresponding artifacts
120-
find signed -name '*.asc' | while read asc; do
121-
base=$(basename "$asc")
122-
original=$(find maven-repo -name "${base%.asc}" | head -1)
119+
# Convert .sig files to .asc and place next to corresponding artifacts
120+
find signed -name '*.sig' | while read sig; do
121+
base=$(basename "$sig")
122+
original_name="${base%.sig}"
123+
original=$(find maven-repo -name "$original_name" | head -1)
123124
if [ -n "$original" ]; then
124-
cp "$asc" "$(dirname "$original")/"
125+
gpg --enarmor < "$sig" | sed 's/ARMORED FILE/SIGNATURE/' > "$(dirname "$original")/${original_name}.asc"
125126
fi
126127
done
128+
echo "=== Signature files placed ==="
129+
find maven-repo -name '*.asc' | sort
130+
echo "=== Count ==="
131+
find maven-repo -name '*.asc' | wc -l
127132
128133
- name: Upload signed artifacts
129134
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0

0 commit comments

Comments
 (0)