File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Usage: ./release.sh v1.5.5
4+
5+ SETUP_CFG=" setup.cfg"
6+ VERSION=" v$1 "
7+ OLD_VERSION=$( grep version setup.cfg | awk -F' = ' ' {print $2}' )
8+
9+ # Update setup.cfg with the new version and push to master
10+ sed -i s/$OLD_VERSION /$VERSION /g $SETUP_CFG
11+ git commit -a -m" Update version: $VERSION "
12+ git push origin master
13+
14+ # Create release on Github
15+ gh release create $VERSION
16+
17+ # Generate release notes
18+ gren release --override
19+
20+ # Generate and push CHANGELOG.md
21+ gren changelog --override
22+ git commit -a -m" Update changelog for version $VERSION "
23+ git push origin master
24+
25+ # Create branch for the new release
26+ git checkout -b $VERSION
27+ git push origin $VERSION
28+ git checkout master
Original file line number Diff line number Diff line change 11[metadata]
22name = openshift-python-wrapper
3- version = vv1 .5.5
3+ version = 1 .5.4
44author = Meni Yakove, Ruth Netser
5566description = Wrapper around https://github.com/openshift/openshift-restclient-python
77long_description = file: README.md
88long_description_content_type = text/markdown
99url = https://github.com/RedHatQE/openshift-python-wrapper
10- download_url = https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/vvv1 .5.5 .tar.gz
10+ download_url = https://github.com/RedHatQE/openshift-python-wrapper/archive/refs/tags/v1 .5.4 .tar.gz
1111
1212project_urls =
1313 Bug Tracker = https://github.com/RedHatQE/openshift-python-wrapper/issues
You can’t perform that action at this time.
0 commit comments