Skip to content

Commit

Permalink
fix(travis): remove branch verification in updateVersion.sh as releas…
Browse files Browse the repository at this point in the history
…ing happens on master
  • Loading branch information
KaiSchwarz-cnic committed Mar 11, 2020
1 parent 5a299db commit 4eb327e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .releaserc.json
Expand Up @@ -11,7 +11,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "./updateVersion.sh ${nextRelease.version} ${options.branch} && ./scripts/generatedocs.sh && ./scripts/createdistribution.sh",
"prepareCmd": "./updateVersion.sh ${nextRelease.version} && ./scripts/generatedocs.sh && ./scripts/createdistribution.sh",
"publishCmd": "./scripts/uploaddistribution_test.sh && ./scripts/uploaddistribution_live.sh"
}
],
Expand Down
7 changes: 2 additions & 5 deletions updateVersion.sh
Expand Up @@ -6,9 +6,6 @@

# version format: X.Y.Z
newversion="$1";
branch="$2";

if [ "$branch" = "master" ]; then
sed -i "s/return \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/return \"${newversion}\"/g" hexonet/apiconnector/apiclient.py
sed -i "s/__version__ = \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/__version__ = \"${newversion}\"/g" hexonet/apiconnector/__init__.py
fi;
sed -i "s/return \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/return \"${newversion}\"/g" hexonet/apiconnector/apiclient.py
sed -i "s/__version__ = \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/__version__ = \"${newversion}\"/g" hexonet/apiconnector/__init__.py

0 comments on commit 4eb327e

Please sign in to comment.