Skip to content

Commit

Permalink
add script for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielefongo committed Feb 14, 2020
1 parent 3b5933a commit b8da38e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
PROJECT_DIR=$(cd $(dirname $0)/..; pwd -P)
PROJECT_NAME=$(basename $PROJECT_DIR)
TAG=$1

cd ${PROJECT_DIR}

sed -i -e "s|'com.github.DaikonWeb:daikon:.*'|'com.github.DaikonWeb:daikon:${TAG}'|g" build.gradle
sed -i -e "s|'com.github.DaikonWeb:${PROJECT_NAME}:.*'|'com.github.DaikonWeb:${PROJECT_NAME}:${TAG}'|g" README.md
sed -i -e "s|<version>.*</version>|<version>${TAG}</version>|g" README.md

git commit -am "Release ${TAG}"
git tag $TAG
git push
git push --tags

0 comments on commit b8da38e

Please sign in to comment.