Skip to content

Commit 51ebb79

Browse files
committed
fix: semantic release
1 parent eddec09 commit 51ebb79

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ jobs:
2020
fetch-depth: 0
2121
tags: true
2222

23+
- name: Get tag version
24+
id: get_version
25+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
26+
2327
- name: Python Semantic Release
2428
uses: python-semantic-release/python-semantic-release@master
2529
with:
2630
github_token: '${{ secrets.GH_TOKEN }}'
31+
command: publish
2732

2833
upload-to-pypi:
2934
runs-on: ubuntu-latest

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.7.3"
1+
__version__ = "1.7.4"
22
__release_date__ = "26-Jul-2025"
33
__author__ = "Agus Makmun (Summon Agus)"
44
__author_email__ = "[email protected]"

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "martor"
7-
version = "1.7.3"
7+
version = "1.7.4"
88
description = "Django Markdown Editor"
99
readme = "README.md"
1010
license = { text = "GPL-3.0" }
@@ -85,6 +85,10 @@ include = [
8585
[tool.semantic_release]
8686
version_variable = "martor/__init__.py:__version__"
8787
version_toml = ["pyproject.toml", "project.version"]
88+
build_command = "hatch build"
89+
dist_path = "dist/"
90+
version_pattern = "v{version}"
91+
tag_format = "v{version}"
8892

8993
# Testing configuration
9094
[tool.hatch.envs.test]

0 commit comments

Comments
 (0)