Skip to content

Commit 8dcf50d

Browse files
fix: preserve old format
1 parent 163cb4f commit 8dcf50d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ jobs:
9292
path: ${{inputs.directory}}/prebuilds
9393
pattern: prebuild-${{steps.package.outputs.name}}-*
9494
# merge-multiple: true
95+
- name: Rename artifacts to old format
96+
shell: bash
97+
run: |
98+
cd ${{inputs.directory}}/prebuilds
99+
for dir in prebuild-${{steps.package.outputs.name}}-*; do
100+
if [ -d "$dir" ]; then
101+
new_name=$(echo "$dir" | sed 's/^prebuild-${{steps.package.outputs.name}}-/prebuild-/')
102+
mv "$dir" "$new_name"
103+
fi
104+
done
95105
- name: Move sources
96106
run: pnpm source
97107
working-directory: ${{inputs.directory}}

0 commit comments

Comments
 (0)