From 86f0594c4e5ccec4906857cc9bdba822ecd6066f Mon Sep 17 00:00:00 2001 From: "142vip.cn" Date: Fri, 27 Oct 2023 11:43:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(CI):=20=E4=BF=AE=E6=94=B9release=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=9D=A1=E4=BB=B6=EF=BC=8Cnext=E5=88=86=E6=94=AF?= =?UTF-8?q?=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yaml | 3 ++- .github/workflows/CI.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 5b66325..da2f418 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -8,7 +8,6 @@ name: CD on: push: branches: - - master - next workflow_dispatch: @@ -23,6 +22,7 @@ jobs: deploy-github: name: "部署到Github-Pages" runs-on: ubuntu-latest + if: github.repository == '142vip/408CSFamily' steps: - name: Checkout Code @@ -68,6 +68,7 @@ jobs: name: "部署到Vercel平台" runs-on: ubuntu-latest if: github.repository == '142vip/408CSFamily' + steps: - name: Checkout Code uses: actions/checkout@v4 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 08768b2..51fb6dd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -9,7 +9,6 @@ on: - next push: branches: - - master - next # 手动触发部署 workflow_dispatch: @@ -69,6 +68,7 @@ jobs: runs-on: ubuntu-latest needs: - install-init + steps: - name: Checkout Code uses: actions/checkout@v4 @@ -104,7 +104,7 @@ jobs: name: "构建Docker镜像" runs-on: ubuntu-latest ## 主库且tag更新时执行 - if: github.repository == '142vip/408CSFamily' && startsWith(github.ref, 'refs/tags/v') + if: github.repository == '142vip/408CSFamily' && startsWith(github.event.head_commit.message, 'chore(release):') permissions: actions: read pull-requests: read