File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 99name : Upload Python Package
1010
1111on :
12- release :
13- types : [published]
14-
15- permissions :
16- contents : read
12+ push :
13+ branches :
14+ - main
1715
1816jobs :
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 :
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 }}
Original file line number Diff line number Diff line change @@ -41,5 +41,8 @@ include=margay*
4141
4242[semantic_release]
4343version_source =tag
44+ upload_to_PyPI = true
45+ upload_to_release = true
46+ major_on_zero = false
4447branch =main
4548version_variable = setup.py:__version__
Original file line number Diff line number Diff line change 11from setuptools import setup
22
3- __version__ = "0.1 .0"
3+ __version__ = "0.0 .0"
44
55setup (
66 setup_requires = ['python-semantic-release' , ],
You can’t perform that action at this time.
0 commit comments