feat: improvements to precommit

fix: version
This commit is contained in:
Fahad
2025-08-20 16:22:52 +04:00
parent 77e8ed1a9f
commit 2966dcf268
4 changed files with 60 additions and 3 deletions

View File

@@ -47,6 +47,18 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
semantic-release version
semantic-release publish
- name: Sync version to config.py
run: |
pip install toml
python scripts/sync_version.py
if git diff --quiet config.py; then
echo "No version changes in config.py"
else
git add config.py
git commit -m "chore: sync version to config.py [skip ci]"
git push
fi
- name: Upload build artifacts to release
if: hashFiles('dist/*') != ''