Skip to content

Commit 8416b67

Browse files
committed
chore(release): 2.0.0
1 parent 5727cad commit 8416b67

File tree

5 files changed

+16
-25
lines changed

5 files changed

+16
-25
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ jobs:
1515
with:
1616
dotnet-version: 8.0.x
1717
- working-directory: ./src/backend/NSExt
18-
run: dotnet build -c Release
18+
run: dotnet build -c Release -f net6.0
19+
- working-directory: ./src/backend/NSExt
20+
run: dotnet build -c Release -f net7.0
21+
- working-directory: ./src/backend/NSExt
22+
run: dotnet build -c Release -f net8.0
23+
- working-directory: ./src/backend/NSExt
24+
run: dotnet pack -c Release --no-build
1925
- uses: actions/create-release@v1
2026
env:
2127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -24,5 +30,7 @@ jobs:
2430
release_name: Release ${{ github.ref }}
2531
draft: false
2632
prerelease: false
27-
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ github.ref }}.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
28-
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ github.ref }}.snupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
33+
- id: get_version
34+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
35+
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ steps.get_version.outputs.VERSION }}.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
36+
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ steps.get_version.outputs.VERSION }}.snupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ All notable changes to this project will be documented in this file. See [standa
88
### Features
99

1010
* ++ ([e41652d](https://github.com/nsnail/NSExt/commit/e41652d553beda7a2eb1600da4795e07f4260330))
11-
* 增加一些扩展方法 ([1f26d0f](https://github.com/nsnail/NSExt/commit/1f26d0f28098f7ee98a9a5482096aecd53b85e04))
11+
* 增加一些扩展方法 ([1f26d0f](https://github.com/nsnail/NSExt/commit/1f26d0f28098f7ee98a9a5482096aecd53b85e04))

dotnet-tools.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,6 @@
77
"commands": [
88
"t4"
99
]
10-
},
11-
"dotnet-script": {
12-
"version": "1.5.0",
13-
"commands": [
14-
"dotnet-script"
15-
]
16-
},
17-
"jetbrains.resharper.globaltools": {
18-
"version": "2023.3.0",
19-
"commands": [
20-
"jb"
21-
]
22-
},
23-
"dnt": {
24-
"version": "1.8.3",
25-
"commands": [
26-
"dnt"
27-
]
2810
}
2911
}
3012
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"path": "node_modules/cz-git"
1212
}
1313
}
14-
}
14+
}

src/backend/NSExt/NSExt.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<DelaySign>false</DelaySign>
55
<EmbedAllSources>true</EmbedAllSources>
66
<EmbedUntrackedSource>true</EmbedUntrackedSource>
7-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
87
<IncludeSymbols>true</IncludeSymbols>
98
<IsPackable>true</IsPackable>
109
<PackageIcon>logo.png</PackageIcon>
1110
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1211
<PackageProjectUrl>https://github.com/nsnail/NSExt.git</PackageProjectUrl>
12+
<PackageReadmeFile>README.md</PackageReadmeFile>
1313
<PackageTags>extensions</PackageTags>
1414
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1515
<RootNamespace>NSExt</RootNamespace>
@@ -23,7 +23,8 @@
2323
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"/>
2424
</ItemGroup>
2525
<ItemGroup>
26-
<None Include="../../../assets/logo.png" Pack="true" PackagePath=""/>
26+
<None Include="../../../assets/logo.png" Pack="true" PackagePath="/"/>
27+
<None Include="../../../README.md" Pack="true" PackagePath="/"/>
2728
<None Update="*.json">
2829
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2930
</None>

0 commit comments

Comments
 (0)