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 3333 python generate-code.py
3434 - name : Update version in linebot/__about__.py
3535 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
3739 cat linebot/__about__.py
3840 - name : Test with pytest
3941 run : |
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name: Upload Python Package
55
66on :
77 release :
8- types : [created ]
8+ types : [published ]
99
1010jobs :
1111 deploy :
@@ -24,12 +24,11 @@ jobs:
2424 run : |
2525 python -m pip install --upgrade pip
2626 pip install setuptools wheel twine
27- - name : Show Version Number
28- run : |
29- echo "Version=${{ github.event.release.tag_name }}"
3027 - name : Update version in linebot/__about__.py
3128 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
3332 cat linebot/__about__.py
3433 - name : Build and publish
3534 env :
Original file line number Diff line number Diff line change 1515"""Meta data of line-bot-sdk."""
1616
1717
18- __version__ = " __LINE_BOT_SDK_PYTHON_VERSION__"
18+ __version__ = ' __LINE_BOT_SDK_PYTHON_VERSION__'
1919__author__ = 'LINE Corporation'
2020__copyright__ = 'Copyright 2016, LINE Corporation'
2121__license__ = 'Apache 2.0'
You can’t perform that action at this time.
0 commit comments