Skip to content

Commit

Permalink
#14: Update version and push to the repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
annoviko committed Oct 7, 2021
1 parent 4177bf9 commit be58d56
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci/github-ci-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PATH_SOURCE=`readlink -f src`
# increment release
version=`cat VERSION`
pattern="([0-9]+).([0-9]+).([0-9]+)"
if [[ $version ~= $pattern ]]
if [[ $version =~ $pattern ]]
then
major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}"
Expand All @@ -21,6 +21,10 @@ fi
echo "$major.$minor.$micro" > VERSION


# push version change to the repository
git push https://$HTTPCTRL_USERNAME:$HTTPCTRL_PASSWORD@github.com/annoviko/robotframework-httpctrl.git --all


# packages to generate documentation
echo "Install packages for release."
pip3 install robotframework docutils pygments twine
Expand Down Expand Up @@ -65,5 +69,8 @@ echo "Upload the documentation."

cd $PATH_REPO_GH_PAGES

commit_message="[ci][release] Release documentation for $major.$minor.$micro."
git commit . -m $commit_message

git push https://$HTTPCTRL_USERNAME:$HTTPCTRL_PASSWORD@github.com/annoviko/robotframework-httpctrl.git --all

0 comments on commit be58d56

Please sign in to comment.