From e3281935bc1b5a19847dd9ebc4169330b8ce8514 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Fri, 25 Jul 2025 18:22:45 +0800 Subject: [PATCH] fix: Add write permissions for GitHub release creation --- .github/workflows/release.yml | 9 +-- docs/md_v2/blog/releases/0.7.1.md | 43 ++++++++++++++ docs/md_v2/blog/releases/0.7.2.md | 98 +++++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+), 4 deletions(-) create mode 100644 docs/md_v2/blog/releases/0.7.1.md create mode 100644 docs/md_v2/blog/releases/0.7.2.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94e57754..3ee9042c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write # Required for creating releases steps: - name: Checkout code @@ -95,12 +97,10 @@ jobs: platforms: linux/amd64,linux/arm64 - name: Create GitHub Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: tag_name: v${{ steps.get_version.outputs.VERSION }} - release_name: Release v${{ steps.get_version.outputs.VERSION }} + name: Release v${{ steps.get_version.outputs.VERSION }} body: | ## ๐ŸŽ‰ Crawl4AI v${{ steps.get_version.outputs.VERSION }} Released! @@ -121,6 +121,7 @@ jobs: See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details. draft: false prerelease: false + token: ${{ secrets.GITHUB_TOKEN }} - name: Summary run: | diff --git a/docs/md_v2/blog/releases/0.7.1.md b/docs/md_v2/blog/releases/0.7.1.md new file mode 100644 index 00000000..d5bfdaec --- /dev/null +++ b/docs/md_v2/blog/releases/0.7.1.md @@ -0,0 +1,43 @@ +# ๐Ÿ› ๏ธ Crawl4AI v0.7.1: Minor Cleanup Update + +*July 17, 2025 โ€ข 2 min read* + +--- + +A small maintenance release that removes unused code and improves documentation. + +## ๐ŸŽฏ What's Changed + +- **Removed unused StealthConfig** from `crawl4ai/browser_manager.py` +- **Updated documentation** with better examples and parameter explanations +- **Fixed virtual scroll configuration** examples in docs + +## ๐Ÿงน Code Cleanup + +Removed unused `StealthConfig` import and configuration that wasn't being used anywhere in the codebase. The project uses its own custom stealth implementation through JavaScript injection instead. + +```python +# Removed unused code: +from playwright_stealth import StealthConfig +stealth_config = StealthConfig(...) # This was never used +``` + +## ๐Ÿ“– Documentation Updates + +- Fixed adaptive crawling parameter examples +- Updated session management documentation +- Corrected virtual scroll configuration examples + +## ๐Ÿš€ Installation + +```bash +pip install crawl4ai==0.7.1 +``` + +No breaking changes - upgrade directly from v0.7.0. + +--- + +Questions? Issues? +- GitHub: [github.com/unclecode/crawl4ai](https://github.com/unclecode/crawl4ai) +- Discord: [discord.gg/crawl4ai](https://discord.gg/jP8KfhDhyN) \ No newline at end of file diff --git a/docs/md_v2/blog/releases/0.7.2.md b/docs/md_v2/blog/releases/0.7.2.md new file mode 100644 index 00000000..0438e1e9 --- /dev/null +++ b/docs/md_v2/blog/releases/0.7.2.md @@ -0,0 +1,98 @@ +# ๐Ÿš€ Crawl4AI v0.7.2: CI/CD & Dependency Optimization Update + +*July 25, 2025 โ€ข 3 min read* + +--- + +This release introduces automated CI/CD pipelines for seamless releases and optimizes dependencies for a lighter, more efficient package. + +## ๐ŸŽฏ What's New + +### ๐Ÿ”„ Automated Release Pipeline +- **GitHub Actions CI/CD**: Automated PyPI and Docker Hub releases on tag push +- **Multi-platform Docker images**: Support for both AMD64 and ARM64 architectures +- **Version consistency checks**: Ensures tag, package, and Docker versions align +- **Automated release notes**: GitHub releases created automatically + +### ๐Ÿ“ฆ Dependency Optimization +- **Moved sentence-transformers to optional dependencies**: Significantly reduces default installation size +- **Lighter Docker images**: Optimized Dockerfile for faster builds and smaller images +- **Better dependency management**: Core vs. optional dependencies clearly separated + +## ๐Ÿ—๏ธ CI/CD Pipeline + +The new automated release process ensures consistent, reliable releases: + +```yaml +# Trigger releases with a simple tag +git tag v0.7.2 +git push origin v0.7.2 + +# Automatically: +# โœ… Validates version consistency +# โœ… Builds and publishes to PyPI +# โœ… Builds multi-platform Docker images +# โœ… Pushes to Docker Hub with proper tags +# โœ… Creates GitHub release +``` + +## ๐Ÿ’พ Lighter Installation + +Default installation is now significantly smaller: + +```bash +# Core installation (smaller, faster) +pip install crawl4ai==0.7.2 + +# With ML features (includes sentence-transformers) +pip install crawl4ai[transformer]==0.7.2 + +# Full installation +pip install crawl4ai[all]==0.7.2 +``` + +## ๐Ÿณ Docker Improvements + +Enhanced Docker support with multi-platform images: + +```bash +# Pull the latest version +docker pull unclecode/crawl4ai:0.7.2 +docker pull unclecode/crawl4ai:latest + +# Available tags: +# - unclecode/crawl4ai:0.7.2 (specific version) +# - unclecode/crawl4ai:0.7 (minor version) +# - unclecode/crawl4ai:0 (major version) +# - unclecode/crawl4ai:latest +``` + +## ๐Ÿ”ง Technical Details + +### Dependency Changes +- `sentence-transformers` moved from required to optional dependencies +- Reduces default installation by ~500MB +- No impact on functionality when transformer features aren't needed + +### CI/CD Configuration +- GitHub Actions workflows for automated releases +- Version validation before publishing +- Parallel PyPI and Docker Hub deployments +- Automatic tagging strategy for Docker images + +## ๐Ÿš€ Installation + +```bash +pip install crawl4ai==0.7.2 +``` + +No breaking changes - direct upgrade from v0.7.0 or v0.7.1. + +--- + +Questions? Issues? +- GitHub: [github.com/unclecode/crawl4ai](https://github.com/unclecode/crawl4ai) +- Discord: [discord.gg/crawl4ai](https://discord.gg/jP8KfhDhyN) +- Twitter: [@unclecode](https://x.com/unclecode) + +*P.S. The new CI/CD pipeline will make future releases faster and more reliable. Thanks for your patience as we improve our release process!* \ No newline at end of file