Skip to content

Commit 54e3b9d

Browse files
committed
fix: release
1 parent 2ebb541 commit 54e3b9d

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
tags: true
2122

2223
- name: Python Semantic Release
2324
uses: python-semantic-release/python-semantic-release@master
@@ -27,6 +28,7 @@ jobs:
2728
upload-to-pypi:
2829
runs-on: ubuntu-latest
2930
environment: Secrets
31+
needs: []
3032

3133
steps:
3234
- uses: actions/checkout@v4
@@ -45,7 +47,7 @@ jobs:
4547
run: python -m build
4648

4749
- name: Publish package
48-
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc
50+
uses: pypa/gh-action-pypi-publish@release/v1
4951
with:
5052
user: __token__
51-
password: '${{ secrets.PYPI_API_TOKEN }}'
53+
password: '${{ secrets.PYPI_TOKEN }}'

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.1"
1+
__version__ = "1.7.2"
22
__release_date__ = "26-Jul-2025"
33
__author__ = "Agus Makmun (Summon Agus)"
44
__author_email__ = "[email protected]"

pyproject.toml

Lines changed: 8 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.1"
7+
version = "1.7.2"
88
description = "Django Markdown Editor"
99
readme = "README.md"
1010
license = { text = "GPL-3.0" }
@@ -69,16 +69,23 @@ dev = [
6969

7070
[tool.hatch.build.targets.wheel]
7171
packages = ["martor"]
72+
include = ["/martor/__init__.py"]
7273

7374
[tool.hatch.build.targets.sdist]
7475
include = [
7576
"/LICENSE",
7677
"/README.md",
7778
"/requirements.txt",
79+
"/martor",
7880
"/martor/templates",
7981
"/martor/static",
82+
"/martor/__init__.py",
8083
]
8184

85+
[tool.semantic_release]
86+
version_variable = "martor/__init__.py:__version__"
87+
version_toml = "pyproject.toml:project.version"
88+
8289
# Testing configuration
8390
[tool.hatch.envs.test]
8491
dependencies = [

0 commit comments

Comments
 (0)