github.com/eframework-cn/EP.GO.UTIL@v1.0.0/.publish.sh (about)

     1  #!/bin/sh
     2  
     3  git fetch --tags
     4  latest=$(git describe --tags `git rev-list --tags --max-count=1`)
     5  echo -e "Latest tag is "$latest
     6  read -p "Please input version(ex: v1.0) for publising: " version
     7  git tag ${version}
     8  git push origin ${version}
     9  read -p "publish done."