Skip to content

Commit

Permalink
updated publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Coser committed Apr 1, 2020
1 parent 9a8f735 commit c203fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then
exit 0
fi

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

git commit -am "Release ${TAG}"
git tag $TAG
Expand Down

0 comments on commit c203fa5

Please sign in to comment.