Skip to content

Commit 4543b11

Browse files
fix: build packages script issue
1 parent 1c2063b commit 4543b11

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/create-sample-releases.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ jobs:
6161
- name: Build quickstart packages
6262
run: |
6363
echo "📦 Building sample packages..."
64-
65-
ARTIFACT_COUNT=0
66-
64+
6765
find . -maxdepth 2 -type d -path "./*/*" | grep -v ".git" | while read sample_dir; do
6866
if [ -d "$sample_dir" ] && [ -f "$sample_dir/README.md" ]; then
6967
CATEGORY=$(basename $(dirname "$sample_dir"))
@@ -110,14 +108,20 @@ jobs:
110108
if [ -f "artifacts/${ZIP_NAME}.zip" ]; then
111109
SIZE=$(du -h "artifacts/${ZIP_NAME}.zip" | cut -f1)
112110
echo "✅ Created: ${ZIP_NAME}.zip ($SIZE)"
113-
ARTIFACT_COUNT=$((ARTIFACT_COUNT + 1))
114111
else
115112
echo "❌ Failed to create: ${ZIP_NAME}.zip"
116113
fi
117114
fi
118115
done
119116
117+
# Count artifacts AFTER the loop completes
118+
ARTIFACT_COUNT=$(ls artifacts/*.zip 2>/dev/null | wc -l)
120119
echo "ARTIFACT_COUNT=$ARTIFACT_COUNT" >> $GITHUB_ENV
120+
echo "📊 Total artifacts built: $ARTIFACT_COUNT"
121+
122+
# Debug: List what was actually created
123+
echo "📦 Artifacts created:"
124+
ls -la artifacts/ || echo "No artifacts directory or files found"
121125
122126
- name: Security scan artifacts
123127
run: |

0 commit comments

Comments
 (0)