33 Star 99 Fork 17

30秒学代码/30-seconds-of-css

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
push.sh 912 Bytes
一键复制 编辑 原始数据 按行查看 历史
Angelos Chalaris 提交于 2018-10-06 04:34 +08:00 . Update push.sh
#!/bin/bash
setup_git() {
git config --global user.email "30secondsofcode@gmail.com"
git config --global user.name "30secondsofcode"
}
commit_website_files() {
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
if [ $TRAVIS_BRANCH == "master" ]; then
echo "Committing to master branch..."
git checkout master
git add *
if [ $TRAVIS_EVENT_TYPE == "cron" ]; then
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [cron]"
else
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [FORCED]"
fi
fi
fi
}
upload_files() {
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
if [ $TRAVIS_BRANCH == "master" ]; then
echo "Pushing to master branch..."
git push --force --quiet "https://${GH_TOKEN}@github.com/30-seconds/30-seconds-of-css.git" master > /dev/null 2>&1
fi
fi
}
setup_git
commit_website_files
upload_files
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/seconds-of-code/30-seconds-of-css.git
git@gitee.com:seconds-of-code/30-seconds-of-css.git
seconds-of-code
30-seconds-of-css
30-seconds-of-css
master

搜索帮助