Skip to content

Commit 3dec26d

Browse files
committed
feat: finalize version setup
1 parent a0b2b3c commit 3dec26d

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,34 @@ on:
77
- next
88

99
jobs:
10+
build:
11+
name: Build distribution 📦
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.x"
20+
- name: Install pypa/build
21+
run: >-
22+
python3 -m
23+
pip install
24+
build
25+
--user
26+
- name: Build a binary wheel and a source tarball
27+
run: python3 -m build
28+
- name: Test the package before release
29+
run: make test
1030
release:
1131
runs-on: ubuntu-latest
1232
concurrency: release
1333
permissions:
1434
id-token: write
1535
contents: write
36+
needs:
37+
- build
1638
steps:
1739
- uses: actions/checkout@v3
1840
with:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Issues = "https://github.com/jonaslagoni/asyncapi-python-parser/issues"
2424

2525
[tool.semantic_release]
2626
assets = []
27-
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
27+
commit_message = "chore(release): v{version}\n\nAutomatically generated by python-semantic-release"
2828
commit_parser = "angular"
2929
logging_use_named_masks = false
3030
major_on_zero = true
3131
allow_zero_version = true
32-
tag_format = "chore: release v{version}"
32+
tag_format = "v{version}"
3333
version_variable = [
3434
"pyproject.toml:version",
3535
]

0 commit comments

Comments
 (0)