File tree Expand file tree Collapse file tree 5 files changed +42
-6
lines changed Expand file tree Collapse file tree 5 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 1+ [bumpversion]
2+ commit = True
3+ tag = False
4+ message = Bump version: {current_version} → {new_version}
5+
6+ [bumpversion:file:setup.py]
7+ search =' {current_version}'
8+ replace =' {new_version}'
Original file line number Diff line number Diff line change 11## Description
2- (Please describe what this PR do.)
3-
2+ <!--
3+ Please describe what this PR do.
4+ -->
45
56## Type of change
7+ <!--
68Please insert 'x' one of the type of change.
9+ -->
710- [ ] Bug fix (non-breaking change which fixes an issue)
811- [ ] New feature (non-breaking change which adds functionality)
912- [ ] Documentation update
Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0
17+ - name : Get Release
18+ 19+ id : get_release
20+ env :
21+ GITHUB_TOKEN : ${{ github.token }}
22+ - name : Bump up version
23+ env :
24+ NEW_TAG : ${{ steps.get_release.outputs.tag_name }}
25+ run : |
26+ pip install --upgrade bumpversion
27+ LAST_TWO_TAGS=$(git for-each-ref refs/tags/ --count=2 --sort=-v:refname --format="%(refname:short)")
28+ LAST_ONE=$(echo $LAST_TWO_TAGS | cut -d' ' -f 2)
29+ last_version=$(echo ${LAST_ONE//v/""})
30+ echo Last version: ${last_version}
31+ new_version=$(echo ${NEW_TAG//v/""})
32+ echo New version: ${new_version}
33+ git config --local user.name "github-actions[bot]"
34+ bumpversion --current-version $last_version --new-version $new_version setup.py
1535 - name : update changelog with gren
1636 env :
1737 GREN_GITHUB_TOKEN : ${{ secrets.TOKEN }}
85105 needs : build
86106 steps :
87107 - uses : actions/checkout@v2
108+ with :
109+ ref : main
88110 - name : Set up Python
89111 uses : actions/setup-python@v2
90112 with :
99121 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
100122 run : |
101123 python setup.py sdist bdist_wheel
102- twine upload --repository testpypi dist/*
124+ twine upload dist/*
103125 - name : Upload Release 3rd Party License text
104126 id : upload-release-license
105127
Original file line number Diff line number Diff line change @@ -41,3 +41,7 @@ License: Apache-2.0
4141Files: tests/*.txt
4242Copyright: 2021 LG Electronics
4343License: Apache-2.0
44+
45+ Files: .bumpversion.cfg
46+ Copyright: 2021 LG Electronics
47+ License: Apache-2.0
Original file line number Diff line number Diff line change 1414if __name__ == "__main__" :
1515 setup (
1616 name = 'fosslight_binary' ,
17- version = '4.0.0 ' ,
17+ version = '3.5.1 ' ,
1818 package_dir = {"" : "src" },
1919 packages = find_packages (where = 'src' ),
2020 description = 'FOSSLight Binary Scanner' ,
2121 long_description = readme ,
2222 long_description_content_type = 'text/markdown' ,
2323 license = 'Apache-2.0' ,
24- author = 'Soim Kim' ,
25- 24+ author = 'LG Electronics' ,
2625 url = 'https://github.com/fosslight/fosslight_binary_scanner' ,
2726 download_url = 'https://github.com/fosslight/fosslight_binary_scanner' ,
2827 classifiers = ['License :: OSI Approved :: Apache Software License' ,
You can’t perform that action at this time.
0 commit comments