forked from MaximeRivest/attachments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·42 lines (34 loc) · 1.24 KB
/
release.sh
File metadata and controls
executable file
·42 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e
echo "🚀 Releasing Stable Version 0.18.0"
echo "=================================="
# Ensure we have the latest DSL cheatsheet
echo "📋 Generating latest DSL cheatsheet..."
python scripts/generate_dsl_cheatsheet.py
# Run tests to ensure everything works
echo "🧪 Running tests..."
python -m pytest tests/ -v || echo "⚠️ Tests failed, but proceeding with release"
# Commit any final changes
echo "💾 Committing final changes..."
git add .
git commit -m "release: Version 0.18.0 - Pipeline trigger
- Version bump to trigger build & publish with latest fixes"
# Tag the release
echo "🏷️ Creating stable release tag..."
git tag -a v0.18.0 -m "Stable release v0.18.0: Pipeline trigger"
# Push to GitHub
echo "⬆️ Pushing to GitHub..."
git push origin main
git push origin v0.18.0
echo "✅ Stable release v0.18.0 pushed to GitHub!"
echo ""
echo "🤖 GitHub Actions will now automatically:"
echo " 1. Build the package"
echo " 2. Publish to PyPI as stable release"
echo " 3. Create GitHub release with notes"
echo ""
echo "📋 Users can now install with:"
echo " pip install attachments # Gets v0.18.0"
echo " pip install 'attachments[extended]' # With clipboard support"
echo ""
echo "🎉 Release complete!"