mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
2020-03-05 19:33:09
This commit is contained in:
@@ -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/
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user