1
0
mirror of https://github.com/ru-de/faq.git synced 2024-11-26 04:12:18 +00:00
faq-de/files/push.sh
Andrey O cd19c0a6eb Немного автоматизации для сортировки словаря (#343)
* Update dictionary.dic

* Added secret token

* Update .travis.yml

* Update .travis.yml

* Moved shell scripts to .travis, added sort & push.sh on success

* Travis build: 4

* Fixed dir issue

* Excluded build-related files

* Sort if changed only

* Travis build: 7

* Travis build: 9

* Set locale

* Moved back travis scripts

* Fixed travis

* Changed files dir back

* Reorganized travisci

* Added git clone depth and skipping submodules

* Extracted run_on_master.sh

* Fixed cs
2018-02-12 22:50:49 +01:00

22 lines
453 B
Bash

#!/bin/sh
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
}
commit_files() {
git checkout master
git add .
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
}
upload_files() {
git remote add origin-master https://${GH_TOKEN}@github.com/andreyors/de_faq.git > /dev/null 2>&1
git push --quiet --set-upstream origin-master master
}
setup_git
commit_files
upload_files