Skip to content

Commit aa20d87

Browse files
fix: include necessary files
1 parent 8a6a2be commit aa20d87

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

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

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -74,34 +74,38 @@ jobs:
7474
7575
# Create comprehensive zip with security exclusions
7676
zip -r "../../artifacts/${ZIP_NAME}.zip" . \
77-
-x "*.git*" \
78-
-x "*node_modules*" \
79-
-x "*__pycache__*" \
77+
-x "*.git/*" \
78+
-x "*/.git/*" \
79+
-x "*node_modules/*" \
80+
-x "*/__pycache__/*" \
8081
-x "*.pyc" \
8182
-x "*.pyo" \
82-
-x "*dist*" \
83-
-x "*build*" \
84-
-x "*.env*" \
85-
-x "*venv*" \
86-
-x "*.venv*" \
87-
-x "*/.pytest_cache*" \
88-
-x "*/.coverage*" \
89-
-x "*/coverage*" \
90-
-x "*.log*" \
91-
-x "*/.DS_Store*" \
92-
-x "*/Thumbs.db*" \
93-
-x "*/.idea*" \
94-
-x "*/.vscode*" \
95-
-x "*/temp*" \
96-
-x "*/tmp*" \
97-
-x "*/*.tmp" \
98-
-x "*/.cache*" \
99-
-x "*/.*_cache*" \
100-
-x "*/.next*" \
101-
-x "*/target*" \
102-
-x "*/.gradle*" \
103-
-x "*/bin*" \
104-
-x "*/obj*"
83+
-x "*dist/*" \
84+
-x "*build/*" \
85+
-x ".env" \
86+
-x "*/.env" \
87+
-x "*.env.local" \
88+
-x "*.env.production" \
89+
-x "*.env.development" \
90+
-x "*venv/*" \
91+
-x "*.venv/*" \
92+
-x "*/.pytest_cache/*" \
93+
-x "*/.coverage" \
94+
-x "*/coverage/*" \
95+
-x "*.log" \
96+
-x "*/.DS_Store" \
97+
-x "*/Thumbs.db" \
98+
-x "*/.idea/*" \
99+
-x "*/.vscode/*" \
100+
-x "*/temp/*" \
101+
-x "*/tmp/*" \
102+
-x "*.tmp" \
103+
-x "*/.cache/*" \
104+
-x "*/.next/*" \
105+
-x "*/target/*" \
106+
-x "*/.gradle/*" \
107+
-x "*/bin/*" \
108+
-x "*/obj/*"
105109
106110
cd - > /dev/null
107111
@@ -131,8 +135,8 @@ jobs:
131135
if [ -f "$zip_file" ]; then
132136
echo "Scanning: $(basename "$zip_file")"
133137
134-
# Check for sensitive files
135-
SENSITIVE_FILES=$(unzip -l "$zip_file" 2>/dev/null | grep -E "\.(key|pem|p12|pfx|env|secret)$" || true)
138+
# Check for actual sensitive files (not config examples)
139+
SENSITIVE_FILES=$(unzip -l "$zip_file" 2>/dev/null | grep -E "\.(key|pem|p12|pfx)$|/\.env$|\.env\.(local|production|development)$|secret\." | grep -v -E "\.(example|sample|template)" || true)
136140
137141
if [ ! -z "$SENSITIVE_FILES" ]; then
138142
echo "⚠️ Warning: Potential sensitive files in $(basename "$zip_file"):"
@@ -203,10 +207,7 @@ jobs:
203207
done
204208
205209
echo ""
206-
echo "🧪 This is a test release. When ready for production:"
207-
echo "1. Change branch trigger to [main, master]"
208-
echo "2. Change release tag back to 'latest'"
209-
echo "3. Remove --prerelease flag"
210+
echo "🧪 This is a test release. Official releases coming soon"
210211
211212
# - name: Create 'latest' release
212213
# env:

0 commit comments

Comments
 (0)