The Unified and Autonomous Development Platform
Edit .onedev-buildspec
robindf532b08807b
diff --git a/.onedev-buildspec b/.onedev-buildspecindex a7580aa9bd..bc40ec5716 100644--- a/.onedev-buildspec+++ b/.onedev-buildspec@@ -91,6 +91,8 @@<string>rm -rf ~/.m2/repository/io/onedev #clean downloaded dependencies as sometimes we do not change project versions</string><string>echo "Detecting project version (may require some time while downloading maven dependencies)..."</string><string>tag=v$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)</string>+ <string>git config --global user.name "Robin Shen"</string>+ <string>git config --global user.email "robin\@pmease.com"</string><string>git tag -a $tag</string><string>url = "https://robinshine:@secrets:github-password@\@github.com/theonedev/onedev"</string><string>git push -f $url $tag:$tag</string>