Skip to content

Commit 6c67077

Browse files
authored
Update main.yml
1 parent 267ddad commit 6c67077

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,21 @@ jobs:
5151
run: |
5252
mkdir -p .artifacts
5353
54-
# Copy existing AI.zip
54+
# Kalau AI.zip sudah ada di repo, pakai itu
5555
if [ -f "AI.zip" ]; then
5656
cp AI.zip .artifacts/
5757
echo "✅ Copied AI.zip to artifacts"
5858
else
5959
echo "❌ AI.zip not found, creating from dist"
6060
if [ -d "dist" ]; then
61-
zip -r .artifacts/AI.zip dist plugin.json
61+
# Bikin zip clean → isi dist/* langsung di root zip
62+
if [ -f "README.md" ]; then
63+
zip -r .artifacts/AI.zip dist/* plugin.json icon.png README.md
64+
elif [ -f "readme.md" ]; then
65+
zip -r .artifacts/AI.zip dist/* plugin.json icon.png readme.md
66+
else
67+
zip -r .artifacts/AI.zip dist/* plugin.json icon.png
68+
fi
6269
else
6370
echo "❌ No dist folder found"
6471
exit 1

0 commit comments

Comments
 (0)