Skip to content

Commit 379aa5a

Browse files
author
Max Nikitenko
committed
fix(ci): change current version;
1 parent c76bbb5 commit 379aa5a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@
99
name: Upload Python Package
1010

1111
on:
12-
release:
13-
types: [published]
14-
15-
permissions:
16-
contents: read
12+
push:
13+
branches:
14+
- main
1715

1816
jobs:
1917
deploy:
20-
2118
runs-on: ubuntu-latest
22-
2319
steps:
2420
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
2523
- name: Set up Python
2624
uses: actions/setup-python@v3
2725
with:
@@ -32,7 +30,7 @@ jobs:
3230
pip install build
3331
- name: Build package
3432
run: python -m build
35-
- name: Publish package
33+
- name: Semantic Release
3634
uses: relekang/python-semantic-release@master
3735
with:
3836
github_token: ${{ secrets.GITHUB_TOKEN }}

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ include=margay*
4141

4242
[semantic_release]
4343
version_source=tag
44+
upload_to_PyPI = true
45+
upload_to_release = true
46+
major_on_zero = false
4447
branch=main
4548
version_variable = setup.py:__version__

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.0.0"
44

55
setup(
66
setup_requires=['python-semantic-release', ],

0 commit comments

Comments
 (0)