Skip to content

Commit f13d3e8

Browse files
author
Bryan Howard
committed
Fix create-release packaging to include examples and LICENSE.txt
**Problem:** Release packages were missing example graph files and excluding LICENSE.txt due to overly broad exclusion patterns. **Root Cause:** - `"*.md"` excluded ALL markdown files, including examples/*.md graph files - `"*.txt"` excluded LICENSE.txt which should be in releases for legal compliance **Solution:** - Replace blanket exclusions with precise file-specific exclusions - Keep examples/*.md - these are actual graph files users load into PyFlowGraph - Keep LICENSE.txt - MIT license required for legal distribution - Exclude only specific development files: .gitignore, README.md, CLAUDE.md, requirements.txt, run scripts **Expected Result:** - ✅ examples/ will contain 10 graph .md files - ✅ LICENSE.txt included for legal compliance - ✅ No development files (.gitignore, run.bat, documentation) 🤖 Generated with [Claude Code](https://claude.ai/code)
1 parent 0e2a448 commit f13d3e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/create-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ jobs:
132132
# Create release zip file from current directory contents
133133
echo "Creating release zip: $zip_file"
134134
if command -v zip >/dev/null 2>&1; then
135-
# Exclude git and other unnecessary files
136-
zip -r "$zip_file" . -x ".git/*" ".github/*" "src/*" "tests/*" "test_reports/*" "docs/*" "images/*" "pre-release/*" "*.md" "run.sh" "run_test_gui.bat" "*.txt"
135+
# Exclude development files but keep examples/*.md and LICENSE.txt
136+
zip -r "$zip_file" . -x ".git/*" ".github/*" "src/*" "tests/*" "test_reports/*" "docs/*" "images/*" "pre-release/*" ".gitignore" "README.md" "CLAUDE.md" "requirements.txt" "run.sh" "run.bat" "run_test_gui.bat" "*.log"
137137
else
138138
# Fallback for systems without zip command
139-
tar -czf "${zip_file%.zip}.tar.gz" --exclude='.git' --exclude='.github' --exclude='src' --exclude='tests' --exclude='test_reports' --exclude='docs' --exclude='images' --exclude='pre-release' --exclude='*.md' --exclude='run.sh' --exclude='run_test_gui.bat' --exclude='*.txt' .
139+
tar -czf "${zip_file%.zip}.tar.gz" --exclude='.git' --exclude='.github' --exclude='src' --exclude='tests' --exclude='test_reports' --exclude='docs' --exclude='images' --exclude='pre-release' --exclude='.gitignore' --exclude='README.md' --exclude='CLAUDE.md' --exclude='requirements.txt' --exclude='run.sh' --exclude='run.bat' --exclude='run_test_gui.bat' --exclude='*.log' .
140140
zip_file="${zip_file%.zip}.tar.gz"
141141
fi
142142

0 commit comments

Comments
 (0)