修复build action

This commit is contained in:
hanhh 2021-05-19 23:43:06 +08:00
parent e1c04bb7fb
commit 421b9b8fb9

View File

@ -23,11 +23,12 @@ jobs:
env: env:
GITHUB_REPO: gitee.com/whyour/qinglong-static GITHUB_REPO: gitee.com/whyour/qinglong-static
run: | run: |
git config --global http.postBuffer 1048576000
git config --global user.email "imwhyour@gmail.com"
git config --global user.name "whyour"
git clone https://gitee.com/whyour/qinglong-static.git static git clone https://gitee.com/whyour/qinglong-static.git static
cd ./static cd ./static
cp -rf ../dist ./ && cp -rf ../build ./ cp -rf ../dist ./ && cp -rf ../build ./
git config user.name "whyour"
git config user.email "imwhyour@gmail.com"
git add . git add .
git commit --allow-empty -m "copy static at $(date +'%Y-%m-%d %H:%M:%S')" git commit --allow-empty -m "copy static at $(date +'%Y-%m-%d %H:%M:%S')"
git push --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master:master git push --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master:master