Skip to content

Commit

Permalink
fix: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarten committed Nov 11, 2024
1 parent ccbdcae commit 463ee91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
actions: write

steps:
- name: Checkout code
Expand All @@ -23,8 +20,6 @@ jobs:
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_format: "v{version}"
commit: true
push: true
tag: true
version: true
tag: true
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ dependencies = [
]

[tool.semantic_release]
version_variable = ["early_stopping_pytorch/__init__.py:^__version__ = \"(.*)\""]
version_toml = ["pyproject.toml:project.version"] # Add this line
version_variable = "early_stopping_pytorch/__init__.py:__version__"
tag_format = "v{version}"
version_toml = ["pyproject.toml:project.version"]
branch = "main"
upload_to_pypi = false
build_command = "pip install build && python -m build"

[tool.semantic_release.git]
tag_format = "v{version}"
build_command = "pip install build && python -m build"

0 comments on commit 463ee91

Please sign in to comment.