Skip to content

Commit e328193

Browse files
committed
fix: Add write permissions for GitHub release creation
1 parent 4864730 commit e328193

File tree

3 files changed

+146
-4
lines changed

3 files changed

+146
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Required for creating releases
1113

1214
steps:
1315
- name: Checkout code
@@ -95,12 +97,10 @@ jobs:
9597
platforms: linux/amd64,linux/arm64
9698

9799
- name: Create GitHub Release
98-
uses: actions/create-release@v1
99-
env:
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100+
uses: softprops/action-gh-release@v2
101101
with:
102102
tag_name: v${{ steps.get_version.outputs.VERSION }}
103-
release_name: Release v${{ steps.get_version.outputs.VERSION }}
103+
name: Release v${{ steps.get_version.outputs.VERSION }}
104104
body: |
105105
## 🎉 Crawl4AI v${{ steps.get_version.outputs.VERSION }} Released!
106106
@@ -121,6 +121,7 @@ jobs:
121121
See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details.
122122
draft: false
123123
prerelease: false
124+
token: ${{ secrets.GITHUB_TOKEN }}
124125

125126
- name: Summary
126127
run: |

docs/md_v2/blog/releases/0.7.1.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# 🛠️ Crawl4AI v0.7.1: Minor Cleanup Update
2+
3+
*July 17, 2025 • 2 min read*
4+
5+
---
6+
7+
A small maintenance release that removes unused code and improves documentation.
8+
9+
## 🎯 What's Changed
10+
11+
- **Removed unused StealthConfig** from `crawl4ai/browser_manager.py`
12+
- **Updated documentation** with better examples and parameter explanations
13+
- **Fixed virtual scroll configuration** examples in docs
14+
15+
## 🧹 Code Cleanup
16+
17+
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.
18+
19+
```python
20+
# Removed unused code:
21+
from playwright_stealth import StealthConfig
22+
stealth_config = StealthConfig(...) # This was never used
23+
```
24+
25+
## 📖 Documentation Updates
26+
27+
- Fixed adaptive crawling parameter examples
28+
- Updated session management documentation
29+
- Corrected virtual scroll configuration examples
30+
31+
## 🚀 Installation
32+
33+
```bash
34+
pip install crawl4ai==0.7.1
35+
```
36+
37+
No breaking changes - upgrade directly from v0.7.0.
38+
39+
---
40+
41+
Questions? Issues?
42+
- GitHub: [github.com/unclecode/crawl4ai](https://github.com/unclecode/crawl4ai)
43+
- Discord: [discord.gg/crawl4ai](https://discord.gg/jP8KfhDhyN)

docs/md_v2/blog/releases/0.7.2.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# 🚀 Crawl4AI v0.7.2: CI/CD & Dependency Optimization Update
2+
3+
*July 25, 2025 • 3 min read*
4+
5+
---
6+
7+
This release introduces automated CI/CD pipelines for seamless releases and optimizes dependencies for a lighter, more efficient package.
8+
9+
## 🎯 What's New
10+
11+
### 🔄 Automated Release Pipeline
12+
- **GitHub Actions CI/CD**: Automated PyPI and Docker Hub releases on tag push
13+
- **Multi-platform Docker images**: Support for both AMD64 and ARM64 architectures
14+
- **Version consistency checks**: Ensures tag, package, and Docker versions align
15+
- **Automated release notes**: GitHub releases created automatically
16+
17+
### 📦 Dependency Optimization
18+
- **Moved sentence-transformers to optional dependencies**: Significantly reduces default installation size
19+
- **Lighter Docker images**: Optimized Dockerfile for faster builds and smaller images
20+
- **Better dependency management**: Core vs. optional dependencies clearly separated
21+
22+
## 🏗️ CI/CD Pipeline
23+
24+
The new automated release process ensures consistent, reliable releases:
25+
26+
```yaml
27+
# Trigger releases with a simple tag
28+
git tag v0.7.2
29+
git push origin v0.7.2
30+
31+
# Automatically:
32+
# ✅ Validates version consistency
33+
# ✅ Builds and publishes to PyPI
34+
# ✅ Builds multi-platform Docker images
35+
# ✅ Pushes to Docker Hub with proper tags
36+
# ✅ Creates GitHub release
37+
```
38+
39+
## 💾 Lighter Installation
40+
41+
Default installation is now significantly smaller:
42+
43+
```bash
44+
# Core installation (smaller, faster)
45+
pip install crawl4ai==0.7.2
46+
47+
# With ML features (includes sentence-transformers)
48+
pip install crawl4ai[transformer]==0.7.2
49+
50+
# Full installation
51+
pip install crawl4ai[all]==0.7.2
52+
```
53+
54+
## 🐳 Docker Improvements
55+
56+
Enhanced Docker support with multi-platform images:
57+
58+
```bash
59+
# Pull the latest version
60+
docker pull unclecode/crawl4ai:0.7.2
61+
docker pull unclecode/crawl4ai:latest
62+
63+
# Available tags:
64+
# - unclecode/crawl4ai:0.7.2 (specific version)
65+
# - unclecode/crawl4ai:0.7 (minor version)
66+
# - unclecode/crawl4ai:0 (major version)
67+
# - unclecode/crawl4ai:latest
68+
```
69+
70+
## 🔧 Technical Details
71+
72+
### Dependency Changes
73+
- `sentence-transformers` moved from required to optional dependencies
74+
- Reduces default installation by ~500MB
75+
- No impact on functionality when transformer features aren't needed
76+
77+
### CI/CD Configuration
78+
- GitHub Actions workflows for automated releases
79+
- Version validation before publishing
80+
- Parallel PyPI and Docker Hub deployments
81+
- Automatic tagging strategy for Docker images
82+
83+
## 🚀 Installation
84+
85+
```bash
86+
pip install crawl4ai==0.7.2
87+
```
88+
89+
No breaking changes - direct upgrade from v0.7.0 or v0.7.1.
90+
91+
---
92+
93+
Questions? Issues?
94+
- GitHub: [github.com/unclecode/crawl4ai](https://github.com/unclecode/crawl4ai)
95+
- Discord: [discord.gg/crawl4ai](https://discord.gg/jP8KfhDhyN)
96+
- Twitter: [@unclecode](https://x.com/unclecode)
97+
98+
*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!*

0 commit comments

Comments
 (0)