File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 33
33
python generate-code.py
34
34
- name : Update version in linebot/__about__.py
35
35
run : |
36
- sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "12.34.5"/g' linebot/__about__.py
36
+ VERSION="12.3.0"
37
+ VERSION=${VERSION#v}
38
+ sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
37
39
cat linebot/__about__.py
38
40
- name : Test with pytest
39
41
run : |
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name: Upload Python Package
5
5
6
6
on :
7
7
release :
8
- types : [created ]
8
+ types : [published ]
9
9
10
10
jobs :
11
11
deploy :
@@ -24,12 +24,11 @@ jobs:
24
24
run : |
25
25
python -m pip install --upgrade pip
26
26
pip install setuptools wheel twine
27
- - name : Show Version Number
28
- run : |
29
- echo "Version=${{ github.event.release.tag_name }}"
30
27
- name : Update version in linebot/__about__.py
31
28
run : |
32
- sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "'${{ github.event.release.tag_name }}'"/g' linebot/__about__.py
29
+ VERSION=${{ github.event.release.tag_name }}
30
+ VERSION=${VERSION#v}
31
+ sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
33
32
cat linebot/__about__.py
34
33
- name : Build and publish
35
34
env :
Original file line number Diff line number Diff line change 15
15
"""Meta data of line-bot-sdk."""
16
16
17
17
18
- __version__ = " __LINE_BOT_SDK_PYTHON_VERSION__"
18
+ __version__ = ' __LINE_BOT_SDK_PYTHON_VERSION__'
19
19
__author__ = 'LINE Corporation'
20
20
__copyright__ = 'Copyright 2016, LINE Corporation'
21
21
__license__ = 'Apache 2.0'
You can’t perform that action at this time.
0 commit comments