mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-11 07:51:54 +00:00
38 lines
644 B
Bash
38 lines
644 B
Bash
#!/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/ |