Skip to content

Commit 6c66301

Browse files
committed
feat: add automated version management system
- Integrate Python Semantic Release for version control - Configure automatic version bumping in CI/CD pipeline - Enable automated changelog generation
1 parent 2ec1b94 commit 6c66301

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
fetch-depth: 0
6464
token: ${{ secrets.PAT_TOKEN }}
6565

66+
- name: Configure Git
67+
run: |
68+
git config --global user.name "github-actions[bot]"
69+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
70+
6671
- name: Set up Python
6772
uses: actions/setup-python@v4
6873
with:

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ build-backend = "poetry.core.masonry.api"
3030

3131
# New-style config for python-semantic-release 9.x
3232
[tool.python_semantic_release]
33-
version_variable = ["app/__init__.py:__version__"]
34-
version_toml = ["pyproject.toml:tool.poetry.version"]
33+
version_variable = [
34+
"app/__init__.py:__version__",
35+
"pyproject.toml:tool.poetry.version"
36+
]
3537
version_source = ["tag", "commit"]
3638
commit_version_number = true
3739
upload_to_repository = false

0 commit comments

Comments
 (0)