Skip to content

Commit

Permalink
调整触发仅支持 版本为 正则匹配 1.0.0 或 1.0.0-rc.1 或 1.0.0-rc.1+build.1 格式的信息。
Browse files Browse the repository at this point in the history
  • Loading branch information
ltm0203 committed Mar 8, 2024
1 parent 2ca78f5 commit e55daea
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/Build and pack nuget.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: Build and pack nuget
on:
push:
branches:
- main
- dev-ci-cd-github
tags:
- '*' # 触发所有tag
- '[0-9]+(\.[0-9]+)*([-\.]\S+)?' # 触发tag,正则匹配 1.0.0 或 1.0.0-rc.1 或 1.0.0-rc.1+build.1 等

env:
IS_PRODUCTION: true
# TAG: ${{ github.ref_name }} # 获取当前分支名或tag名
TAG: 1.0.0 # 获取当前分支名或tag名
TAG: ${{ github.ref_name }} # 获取当前分支名或tag名
# TAG: 1.0.0 # 获取当前分支名或tag名
NUGET_SOURCE: https://api.nuget.org/v3/index.json
NUGET_SOURCE_APIKEY: ${{ secrets.NUGET_TOKEN_YOYOBOOT }}

Expand Down

0 comments on commit e55daea

Please sign in to comment.