name: Release permissions: contents: read on: push: tags: - 'v*' jobs: create-release: outputs: version: ${{ steps.get_version.outputs.version }} runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v7 - name: Set up Python 3.10 uses: actions/setup-python@v7 with: python-version: '3.10' - name: Install dependencies run: | python -m pip install --upgrade pip pip install torch --index-url https://download.pytorch.org/whl/cpu pip install -r requirements-dev.txt - name: Run full test suite and coverage gate run: python -m pytest tests --cov=kikotools --cov-report=term-missing - name: Extract version from tag id: get_version run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Create release notes id: release_notes run: | cat > release_notes.md << 'EOF' ## ComfyUI-KikoTools ${{ steps.get_version.outputs.version }} ### 🎉 What's New #### Resolution Calculator Tool - **Smart Input Handling**: Works with both IMAGE and LATENT tensors - **Model Optimized**: Specific optimizations for SDXL and FLUX models - **Constraint Enforcement**: Automatically ensures dimensions divisible by 8 - **Flexible Scaling**: Supports scale factors from 1.0x to 8.0x ### 📦 Installation #### ComfyUI Manager 1. Search for "ComfyUI-KikoTools" 2. Click Install 3. Restart ComfyUI #### Manual Installation ```bash cd ComfyUI/custom_nodes/ git clone https://github.com/ComfyAssets/ComfyUI-KikoTools.git cd ComfyUI-KikoTools pip install -r requirements-dev.txt ``` ### 🚀 Quick Start Look for **ComfyAssets** nodes in your ComfyUI node browser! ### 📊 Technical Details - **Nodes**: 1 (Resolution Calculator) - **Python Coverage Gate**: 85% combined statement/branch coverage - **Python Support**: 3.8+ - **ComfyUI Compatibility**: Latest ### 🐛 Bug Reports Found an issue? Please report it [here](https://github.com/ComfyAssets/ComfyUI-KikoTools/issues). --- **Full Changelog**: https://github.com/ComfyAssets/ComfyUI-KikoTools/compare/v0.0.0...${{ steps.get_version.outputs.version }} EOF - name: Create GitHub Release uses: softprops/action-gh-release@v3 with: tag_name: ${{ steps.get_version.outputs.version }} name: ComfyUI-KikoTools ${{ steps.get_version.outputs.version }} body_path: release_notes.md draft: false prerelease: false files: | README.md LICENSE requirements-dev.txt examples/workflows/*.json env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} notify-community: runs-on: ubuntu-latest needs: create-release if: success() steps: - name: Community notification placeholder run: | echo "🎉 Release ${{ needs.create-release.outputs.version }} created!" echo "Consider posting to:" echo "- ComfyUI Discord" echo "- Reddit r/ComfyUI" echo "- ComfyUI-Manager database" echo "" echo "Release includes:" echo "- Resolution Calculator tool" echo "- Complete documentation" echo "- Example workflows" echo "- Enforced Python coverage and frontend regression checks"