Skip to content

Commit 925c0b8

Browse files
author
vicwjb
committed
更新测试action
1 parent 133e5b9 commit 925c0b8

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/deploy-nuget.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121

2222
- name: Build
2323
run: dotnet build --configuration Release --no-restore
24+
working-directory: ./src/CAD/
2425

2526
# 自动从 Tag 名称提取版本号并打包
26-
- name: Pack
27-
run: dotnet pack --configuration Release /p:PackageVersion=${{ github.ref_name }} --output ./dist
28-
29-
- name: Publish to NuGet
30-
run: dotnet nuget push ./dist*.nupkg --api-key ${{ secrets.NUGET_AUTH_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
27+
- name: Pack NuGet Package
28+
uses: alirezanet/publish-nuget@v3.1.0
29+
with:
30+
PROJECT_FILE_PATH: src\CAD\IFox.CAD.ACAD\IFox.CAD.ACAD.csproj
31+
NUGET_KEY: ${{ secrets.NUGET_AUTH_TOKEN }}
32+
NUGET_SOURCE: https://api.nuget.org/v3/index.json

src/CAD/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22

33
<PropertyGroup> <!--需要设置的内容-->
4-
<Version>0.7.2</Version>
5-
<PackageReleaseNotes>发布0.7.2</PackageReleaseNotes>
4+
<Version>0.7.3.0</Version>
5+
<PackageReleaseNotes>发布0.7.3</PackageReleaseNotes>
66
</PropertyGroup>
77

88
<PropertyGroup>

0 commit comments

Comments
 (0)