App-Open-Source-per-iPhone-.../.github/deploy.sh

36 lines
725 B
Bash
Raw Normal View History

2016-05-11 16:22:10 +02:00
#!/bin/bash
2018-09-02 01:51:13 +02:00
echo 'set -e'
2016-05-11 16:22:10 +02:00
set -e
2018-09-02 01:51:13 +02:00
echo 'git config'
2016-05-25 22:40:30 +02:00
git config user.name "READMEbot"
git config user.email "readmebot@users.noreply.github.com"
2016-05-11 16:22:10 +02:00
2016-05-13 21:17:36 +02:00
status=`git status`
2018-09-02 01:51:13 +02:00
echo $status
2016-05-13 21:17:36 +02:00
2016-05-13 21:05:16 +02:00
if [[ $status == *"README.md"* ]]
then
2018-09-02 01:51:13 +02:00
echo 'git add readme'
2016-05-13 21:05:16 +02:00
git add README.md
git commit -m "[auto] [ci skip] Generate README"
fi
2016-05-13 20:27:14 +02:00
2016-05-13 21:05:16 +02:00
if [[ $status == *"ARCHIVE.md"* ]]
then
2018-09-02 01:51:13 +02:00
echo 'git add archive'
2016-05-13 21:05:16 +02:00
git add ARCHIVE.md
git commit -m "[auto] [ci skip] Generate ARCHIVE"
fi
2016-05-13 20:27:14 +02:00
if [[ $status == *"APPSTORE.md"* ]]
then
2018-09-02 01:51:13 +02:00
echo 'git add appstore'
git add APPSTORE.md
git commit -m "[auto] [ci skip] Generate APPSTORE"
fi
2018-09-02 01:51:13 +02:00
echo 'git push'
git push "https://test:test@github.com/dkhamsing/open-source-ios-apps" master:master > /dev/null 2>&1