Skip to content

Commit 0e17a16

Browse files
committed
Update ci.yml
1 parent 06333c5 commit 0e17a16

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,30 +75,27 @@ jobs:
7575

7676
- name: Copy files to dist
7777
run: |
78-
repo_name="${{ matrix.repository }}"
79-
repo_name=${repo_name##*/} # Extract the repo name
80-
mkdir -p dist/"$repo_name"
78+
mkdir -p dist
8179
82-
cp -r "$repo_name/plugin.json" dist/"$repo_name"/plugin.json
83-
cp -r "$repo_name/requirements.txt" dist/"$repo_name"/requirements.txt
84-
cp -r "$repo_name/README.md" dist/"$repo_name"/README.md || true
85-
cp -r "$repo_name/README" dist/"$repo_name"/README || true
80+
cp -r "/plugin.json" dist/plugin.json
81+
cp -r "/requirements.txt" dist/requirements.txt
82+
cp -r "/README.md" dist/README.md || true
83+
cp -r "/README" dist/README || true
8684
87-
cd "$repo_name"
8885
backend=$(jq -r '.backend' plugin.json)
8986
if [ "$backend" != "null" ]; then
90-
cp -r "$backend" ../../dist/"$repo_name"/"$backend"
87+
cp -r "$backend" ../../dist/"$backend"
9188
fi
9289
9390
include=$(jq -r '.include | join(" ")' plugin.json)
9491
if [ -n "$include" ]; then
9592
for file in $include; do
96-
cp -r "$file" ../../dist/"$repo_name"/"$file"
93+
cp -r "$file" ../../dist/"$file"
9794
done
9895
fi
9996
10097
cd ../..
101-
echo "{\"commit\": \"$(git rev-parse HEAD)\", \"id\": \"$(git rev-list --max-parents=0 HEAD)\"}" > dist/"$repo_name"/metadata.json
98+
echo "{\"commit\": \"$(git rev-parse HEAD)\", \"id\": \"$(git rev-list --max-parents=0 HEAD)\"}" > dist/metadata.json
10299
103100
- name: Zip the plugin
104101
run: |

0 commit comments

Comments
 (0)