Skip to content

Commit 3d4c03c

Browse files
committed
feat: new release workflow
1 parent a23e87f commit 3d4c03c

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,10 @@ jobs:
1717
uses: actions/setup-python@v4
1818
with:
1919
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
2820
- name: Install dependencies
2921
run: make setup
22+
- name: Build a binary wheel and a source tarball
23+
run: make build
3024
- name: Test the package before release
3125
run: make test
3226
release:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
.DS_Store
3-
__pycache__
3+
__pycache__
4+
dist

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
setup: requirements.txt
22
pip install -r requirements.txt
33

4+
build:
5+
python3 -m build
6+
47
test:
58
python -m unittest discover ./tests/asyncapi_python_parser_jonaslagoni
69

pyproject.toml

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

55
[project]
66
name = "asyncapi_python_parser_jonaslagoni"
7-
version = "0.0.2"
7+
version = "0.0.3"
88
authors = [
99
{ name="jonaslagoni", email="jonas-lt@live.dk" },
1010
]
@@ -23,15 +23,17 @@ Homepage = "https://github.com/jonaslagoni/asyncapi-python-parser"
2323
Issues = "https://github.com/jonaslagoni/asyncapi-python-parser/issues"
2424

2525
[tool.semantic_release]
26-
assets = []
26+
assets = [
27+
"dist/*.tar.gz"
28+
]
2729
commit_message = "chore(release): v{version}\n\nAutomatically generated by python-semantic-release"
2830
commit_parser = "angular"
2931
logging_use_named_masks = false
3032
major_on_zero = true
3133
allow_zero_version = true
3234
tag_format = "v{version}"
33-
version_variable = [
34-
"pyproject.toml:version",
35+
version_toml = [
36+
"pyproject.toml:project.version",
3537
]
3638

3739
[tool.semantic_release.branches.main]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pyyaml
22
jsonschema
33
jsonpath-ng
44
python-semantic-release
5+
build

0 commit comments

Comments
 (0)