Skip to content

Commit 8a93115

Browse files
committed
fix: semantic release
1 parent f23c387 commit 8a93115

File tree

3 files changed

+7
-58
lines changed

3 files changed

+7
-58
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -8,72 +8,21 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
environment: Secrets
1211
concurrency: release
12+
environment: Secrets
1313
permissions:
1414
id-token: write
1515
contents: write
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
21-
tags: true
22-
23-
- name: Set up Python
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: 3.x
27-
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install build
32-
33-
- name: Get tag version
34-
id: get_version
35-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
36-
37-
- name: Build package
38-
run: python -m build
39-
40-
- name: Create GitHub Release
41-
id: create_release
42-
uses: actions/create-release@v1
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
45-
with:
46-
tag_name: ${{ steps.get_version.outputs.VERSION }}
47-
release_name: Release ${{ steps.get_version.outputs.VERSION }}
48-
body: |
49-
## Release ${{ steps.get_version.outputs.VERSION }}
50-
51-
This is an automated release created from tag ${{ steps.get_version.outputs.VERSION }}.
52-
draft: false
53-
prerelease: false
54-
55-
- name: List dist contents
56-
run: ls -la dist/
57-
58-
- name: Upload Wheel Distribution
59-
uses: actions/upload-release-asset@v1
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
62-
with:
63-
upload_url: ${{ steps.create_release.outputs.upload_url }}
64-
asset_path: ./dist/martor-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
65-
asset_name: martor-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl
66-
asset_content_type: application/octet-stream
6721

68-
- name: Upload Source Distribution
69-
uses: actions/upload-release-asset@v1
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
22+
- name: Python Semantic Release
23+
uses: python-semantic-release/python-semantic-release@master
7224
with:
73-
upload_url: ${{ steps.create_release.outputs.upload_url }}
74-
asset_path: ./dist/martor-${{ steps.get_version.outputs.VERSION }}.tar.gz
75-
asset_name: martor-${{ steps.get_version.outputs.VERSION }}.tar.gz
76-
asset_content_type: application/gzip
25+
github_token: '${{ secrets.GH_TOKEN }}'
7726

7827
upload-to-pypi:
7928
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.9"
1+
__version__ = "1.7.10"
22
__release_date__ = "26-Jul-2025"
33
__author__ = "Agus Makmun (Summon Agus)"
44
__author_email__ = "summon.agus@gmail.com"

pyproject.toml

Lines changed: 1 addition & 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.9"
7+
version = "1.7.10"
88
description = "Django Markdown Editor"
99
readme = "README.md"
1010
license = { text = "GPL-3.0" }

0 commit comments

Comments
 (0)