Skip to content

Commit cfd70f6

Browse files
committed
fix: semantic release
1 parent c26370f commit cfd70f6

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ jobs:
2525
with:
2626
python-version: 3.x
2727

28-
- name: Install semantic-release
28+
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install python-semantic-release[github]
32-
33-
- name: Get tag version
34-
id: get_version
35-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
31+
pip install hatch python-semantic-release[github]
3632
3733
- name: Create GitHub Release
3834
env:

.semantic-release.toml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,13 @@
22
command = "hatch build"
33
path = "dist/"
44

5-
[changelog]
6-
exclude_commit_types = [
7-
"ci",
8-
"build",
9-
"chore",
10-
"docs",
11-
"style",
12-
"refactor",
13-
"perf",
14-
"test",
5+
[version]
6+
tag_format = "v{version}"
7+
version_variable = [
8+
"martor/__init__.py:__version__",
9+
"pyproject.toml:project.version",
1510
]
1611

17-
[changelog.environment]
18-
start_reference = "HEAD~1"
19-
20-
[changelog.environment.github]
21-
repo = "agusmakmun/django-markdown-editor"
22-
2312
[upload_to_release]
2413
enabled = true
2514
build_artifacts = true

0 commit comments

Comments
 (0)