Skip to content

Commit bf8e84a

Browse files
committed
release via script
1 parent 49e1314 commit bf8e84a

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

release.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[metadata]
22
name = openshift-python-wrapper
3-
version = vv1.5.5
3+
version = 1.5.4
44
author = Meni Yakove, Ruth Netser
55
author_email = [email protected]
66
description = Wrapper around https://github.com/openshift/openshift-restclient-python
77
long_description = file: README.md
88
long_description_content_type = text/markdown
99
url = 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

1212
project_urls =
1313
Bug Tracker = https://github.com/RedHatQE/openshift-python-wrapper/issues

0 commit comments

Comments
 (0)