diff options
author | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-04-18 19:36:25 -0700 |
---|---|---|
committer | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-04-18 19:36:25 -0700 |
commit | e56c963435040fff497d92798ebbf2b16d63403f (patch) | |
tree | 63cfcfb12fa30f72eea675d7bbe9ae61a25104b2 /deploy_repo.sh | |
download | OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar.gz OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar.bz2 OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.zip |
First Commit
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'deploy_repo.sh')
-rwxr-xr-x | deploy_repo.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/deploy_repo.sh b/deploy_repo.sh new file mode 100755 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 |