The Unified and Autonomous Development Platform
Edit .onedev-buildspec
robina38a209e8d4f
diff --git a/.onedev-buildspec b/.onedev-buildspecindex f1af035483..da83a99db5 100644--- a/.onedev-buildspec+++ b/.onedev-buildspec@@ -88,14 +88,8 @@<image>1dev/build-environment:1.0</image><commands><string>set -e</string>- <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 -m "Release"</string>- <string>url=https://robinshine:@secrets:github-password@\@github.com/theonedev/onedev</string>- <string>git push -f $url $tag:$tag</string>+ <string>git fetch --tags</string>+ <string>git push -f --tags https://robinshine:@secrets:github-password@\@github.com/theonedev/onedev</string></commands><retrieveSource>true</retrieveSource><submoduleCredentials/>