Skip to content

Commit

Permalink
Merge pull request #233 from dilyabareeva/release_mngmnt_debugging
Browse files Browse the repository at this point in the history
fix: Using semantic-release for version bumping in pyproject.toml
  • Loading branch information
dilyabareeva authored Nov 21, 2024
2 parents 911fff3 + 5cfb661 commit b2965d7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 57 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/release.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/version_bumping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
workflow_dispatch: # Allows manual triggering of the workflow

jobs:
cd:
permissions:
id-token: write
contents: write

runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Check-out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Python Semantic Release to prepare release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ py-modules = []
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "standard" # Standard Python versioning
version_provider = "standard"
update_changelog_on_bump = true

[tool.semantic_release]
version_source = "commit"
version_file = "quanda/__init__.py" # File that contains the version
version_toml = ["pyproject.toml:project.version"]
branch = "main"
changelog_file = "CHANGELOG.md"

Expand Down

0 comments on commit b2965d7

Please sign in to comment.