From b3ada7a5d17e88e0feeab19998e4ad9bebf96f97 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Wed, 14 Jun 2023 16:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-example-site.yml | 2 +- public/.github/workflows/deploy.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-example-site.yml b/.github/workflows/deploy-example-site.yml index 4c6d1ddc..fc784025 100644 --- a/.github/workflows/deploy-example-site.yml +++ b/.github/workflows/deploy-example-site.yml @@ -57,4 +57,4 @@ jobs: destination-github-username: 'fantastic-admin' destination-repository-name: 'basic-example' user-email: 304327508@qq.com - target-branch: master + target-branch: main diff --git a/public/.github/workflows/deploy.yml b/public/.github/workflows/deploy.yml index 22ec26b3..1fbb9a56 100644 --- a/public/.github/workflows/deploy.yml +++ b/public/.github/workflows/deploy.yml @@ -1,9 +1,9 @@ name: deploy-example-site-to-gitee on: - # 每当 push 到 master 分支时触发部署 + # 每当 push 到 main 分支时触发部署 push: - branches: [master] + branches: [main] jobs: docs: @@ -23,9 +23,9 @@ jobs: 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 + git branch -D main + git branch -m main + git push -f origin main - name: Sync to Gitee uses: wearerequired/git-mirror-action@master @@ -48,4 +48,4 @@ jobs: # 注意替换为你的 Gitee 仓库,仓库名严格区分大小写,请准确填写,否则会出错 gitee-repo: fantastic-admin/basic-example # 要部署的分支,默认是 master,若是其他分支,则需要指定(指定的分支必须存在) - branch: master + branch: main