Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaliano committed Dec 3, 2024
1 parent c3f08a5 commit 67b3ace
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ jobs:
path: my-artifact
pattern: build-artifacts-${{ github.sha }}-*
merge-multiple: true
- run: ls -R my-artifact
- name: Copy Artifacts
run: ./scripts/copy-artifacts.sh
shell: bash
- name: List Artifacts
run: ls packages/toml-parser
shell: bash
19 changes: 19 additions & 0 deletions scripts/copy-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

source_dir="my-artifact"
target_base_dir="packages"

for package_dir in "$source_dir"/*; do
if [ -d "$package_dir" ]; then
package_name=$(basename "$package_dir")
fi

target_dir="$target_base_dir/$package_name"

if [ -d "$target_dir" ]; then
echo "Moving .node files from $package_dir to $target_dir"
mv "$package_dir"/*.node "$target_dir/"
else
echo "Target directory $target_dir does not exist. Skipping."
fi
done

0 comments on commit 67b3ace

Please sign in to comment.