From a48ae3f16af0f13cf0f2cb0eb99b02e932c12479 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Sat, 7 Jan 2023 11:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.github/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/public/.github/workflows/deploy.yml b/public/.github/workflows/deploy.yml index 29e39c7b..751fbf39 100644 --- a/public/.github/workflows/deploy.yml +++ b/public/.github/workflows/deploy.yml @@ -10,6 +10,23 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v2 + with: + # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录 + fetch-depth: 0 + + - name: Clean git history + run: | + git config --global user.email "304327508@qq.com" + git config --global user.name "hooray" + git checkout --orphan new_branch + git add -A + git commit -m "deploy" + git branch -D master + git branch -m master + git push -f origin master + - name: Sync to Gitee uses: wearerequired/git-mirror-action@master env: