feat: improvements to precommit
fix: version
This commit is contained in:
12
.github/workflows/semantic-release.yml
vendored
12
.github/workflows/semantic-release.yml
vendored
@@ -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/*') != ''
|
||||
|
||||
Reference in New Issue
Block a user