From ea7feab2f90700c082cdce8bda1e7c8e1cbb6767 Mon Sep 17 00:00:00 2001 From: zhshch2002 Date: Fri, 13 May 2022 16:55:36 +0800 Subject: [PATCH] update: build.yml trigger condition --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1679da49..de204639 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,11 @@ on: - push: # 每次 push 的时候触发 + push: # 每次带有 tag 的 push 候触发 + tags: + - 'v*' name: Build Release jobs: release: - if: startsWith(github.ref, 'refs/tags/') # 只有这次 Commit 是 创建 Tag 时,才进行后续发布操作 runs-on: ubuntu-latest steps: - uses: actions/checkout@master # checkout 代码