diff options
Diffstat (limited to 'deploy_repo.sh')
-rw-r--r-- | deploy_repo.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/deploy_repo.sh b/deploy_repo.sh new file mode 100644 index 0000000..1bcf137 --- /dev/null +++ b/deploy_repo.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +setup_git() { + git config --global user.email "${MAVEN_PUSH_EMAIL}" + git config --global user.name "${MAVEN_PUSH_NAME}" +} + +commit_files() { + git add . + git commit --author "${MAVEN_PUSH_NAME} <${MAVEN_PUSH_EMAIL}>" -m "Upload" +} + +upload_files() { + git push https://Trumeet:${MAVEN_PUSH_TOKEN}@github.com/Trumeet/maven.git HEAD:master +} + +cd repo +setup_git +commit_files +upload_files +cd ..
\ No newline at end of file |