summaryrefslogtreecommitdiff
path: root/deploy_repo.sh
blob: 1bcf137615bdd9527b1e17c4986134137833f778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 ..