Skip to content

Commit

Permalink
[CI](test): 只有推送tag的时候才能触发ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lixin59 committed Feb 10, 2022
1 parent 0a6989b commit d83a576
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: ci

#on:
# # 每当 push 到 master 分支时触发部署
# push:
# branches: [master]
# # 手动触发部署
# # workflow_dispatch:

on:
# 每当 push 到 master 分支时触发部署
push:
branches: [master]
# 手动触发部署
# workflow_dispatch:
tags:
- '**'

jobs:
docs:
Expand Down Expand Up @@ -50,7 +55,7 @@ jobs:
# 创建release文件
- name: release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
with:
files: "omsui.zip"
env:
Expand Down

0 comments on commit d83a576

Please sign in to comment.