File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,20 @@ jobs:
35
35
pip install pytest
36
36
pytest tests/
37
37
38
- - name : Build package
39
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
40
- run : |
41
- pip install wheel
42
- python setup.py sdist bdist_wheel
43
- - name : Publish to PyPi
44
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
45
-
46
- with :
47
- user : __token__
48
- password : ${{ secrets.PYPI_KEY }}
38
+ publish :
39
+
40
+ name : Publish to PyPi
41
+ needs : build
42
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - name : Build package
46
+
47
+ run : |
48
+ pip install wheel
49
+ python setup.py sdist bdist_wheel
50
+ - name : Publish
51
+
52
+ with :
53
+ user : __token__
54
+ password : ${{ secrets.PYPI_KEY }}
Original file line number Diff line number Diff line change 6
6
7
7
def get_version ():
8
8
text = Path (__file__ ).parent .joinpath ("markdown_it" , "__init__.py" ).read_text ()
9
- match = re .compile (r"^__version__\s*\=\s*([^\s]+)" , re .M ).search (text )
9
+ match = re .compile (r"^__version__\s*\=\s*[\"\'] ([^\s\'\" ]+)" , re .M ).search (text )
10
10
return match .group (1 )
11
11
12
12
You can’t perform that action at this time.
0 commit comments