Skip to content

Commit fce5fe1

Browse files
author
vicwjb
committed
更新 deploy-nuget.yml,调整触发条件并修正版本文件路径
1 parent c9ec13b commit fce5fe1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy-nuget.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Publish NuGet Package
22

33
on:
44
push:
5-
tags:
6-
- 'v0.7*' # 当推送以 v 开头的标签时触发,例如 v0.9
5+
branches:
6+
- v0.7 # 监听的分支
7+
paths: # 监听的文件
8+
- 'src/CAD/Directory.Build.props'
79

810
jobs:
911
build-and-publish:
@@ -40,7 +42,7 @@ jobs:
4042
# PACKAGE_NAME: Core
4143

4244
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
43-
VERSION_FILE_PATH: Directory.Build.props
45+
VERSION_FILE_PATH: src/CAD/Directory.Build.props
4446

4547
# Regex pattern to extract version info in a capturing group
4648
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$

0 commit comments

Comments
 (0)