2020-03-05 19:33:09

This commit is contained in:
monlor
2020-03-05 19:33:09 +08:00
parent 2e0f81be7a
commit 03c5446544
7 changed files with 65 additions and 53 deletions

View File

@@ -1,38 +0,0 @@
#!/bin/bash
GIT_BRANCH="$1"
GIT_REF="$2"
rm -rf mbfiles_git/
git clone "${GIT_REF}" mbfiles_git
cd mbfiles_git
git branch | grep -q "* ${GIT_BRANCH}" || git checkout -b "${GIT_BRANCH}"
cp -rf ../mbfiles/* .
git config --local user.email "monlor@qq.com"
git config --local user.name "monlor"
git lfs install
git lfs track "*_darwin_*"
git lfs track "*_linux_*"
git lfs track "*.png"
git config lfs.${CO_REF}/info/lfs.locksverify true
git config lfs.allowincompletepush true
git add .
git commit -m "$(TZ='Asia/Shanghai' date "+%Y-%m-%d %H:%M:%S")" -a
git push "${CO_REF}" "${GIT_BRANCH}":"${GIT_BRANCH}" -f
rm -rf mbfiles_git/

View File

@@ -104,6 +104,8 @@ reset() {
# $3: remote url with token
deploy() {
sed -Ei "s#mbfiles/raw/[a-z]+#mbfiles/raw/$2#" $1/install.sh
cd $1
git init
git config --local user.email "monlor@qq.com"