aboutsummaryrefslogtreecommitdiff
path: root/deploy_repo.sh
diff options
context:
space:
mode:
authorYuutaW <17158086+Trumeet@users.noreply.github.com>2019-04-18 19:36:25 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-04-18 19:36:25 -0700
commite56c963435040fff497d92798ebbf2b16d63403f (patch)
tree63cfcfb12fa30f72eea675d7bbe9ae61a25104b2 /deploy_repo.sh
downloadOhMySAF-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-xdeploy_repo.sh21
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