We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267ddad commit 6c67077Copy full SHA for 6c67077
1 file changed
.github/workflows/main.yml
@@ -51,14 +51,21 @@ jobs:
51
run: |
52
mkdir -p .artifacts
53
54
- # Copy existing AI.zip
+ # Kalau AI.zip sudah ada di repo, pakai itu
55
if [ -f "AI.zip" ]; then
56
cp AI.zip .artifacts/
57
echo "✅ Copied AI.zip to artifacts"
58
else
59
echo "❌ AI.zip not found, creating from dist"
60
if [ -d "dist" ]; then
61
- zip -r .artifacts/AI.zip dist plugin.json
+ # 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
69
70
echo "❌ No dist folder found"
71
exit 1
0 commit comments