Skip to content

Commit

Permalink
update: build.yml trigger condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhshch2002 committed May 13, 2022
1 parent e941eaa commit ea7feab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 代码
Expand Down

0 comments on commit ea7feab

Please sign in to comment.