Skip to content

Commit 7b2db90

Browse files
committed
merge
2 parents e5fbb7c + 88f40f3 commit 7b2db90

File tree

4 files changed

+21
-59
lines changed

4 files changed

+21
-59
lines changed

.github/workflows/publish-nuget.yml

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

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- 'v*.*.*'
77

88
jobs:
99
publish:
@@ -16,16 +16,25 @@ jobs:
1616
- name: Setup .NET SDK
1717
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 8.0.x
19+
dotnet-version: 10.0.x
20+
21+
- name: Extract version from tag
22+
id: get_version
23+
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2024

2125
- name: Restore dependencies
22-
run: dotnet restore
26+
run: dotnet restore KSFramework.sln
2327

2428
- name: Build
25-
run: dotnet build --configuration Release --no-restore
29+
run: dotnet build KSFramework.sln --configuration Release --no-restore
2630

2731
- name: Pack NuGet
28-
run: dotnet pack --configuration Release --no-build -o out
32+
run: dotnet pack src/KSFramework/KSFramework.csproj \
33+
--configuration Release \
34+
-p:PackageVersion=${{ env.PACKAGE_VERSION }} \
35+
--no-build -o out
2936

3037
- name: Push to NuGet
31-
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
38+
run: dotnet nuget push out/*.nupkg \
39+
--api-key ${{ secrets.NUGET_API_KEY }} \
40+
--source https://api.nuget.org/v3/index.json

GitVersion.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

global.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"sdk": {
3-
"version": "10.0.100-preview.4.25258.110"
3+
"version": "10.0.0",
4+
"rollForward": "latestMajor",
5+
"allowPrerelease": true
46
}
57
}

src/KSFramework/KSFramework.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
45
<ImplicitUsings>enable</ImplicitUsings>
56
<Nullable>enable</Nullable>
6-
<TargetFramework>net8.0</TargetFramework>
77
</PropertyGroup>
88

99
<PropertyGroup>
1010
<PackageId>KSFramework</PackageId>
11-
<Version>1.0.20</Version>
1211
<Authors>Kamran Sadin</Authors>
1312
<Company>Sadin</Company>
1413
<CopyRight>Copyright (c) 2022 SadinCo.</CopyRight>
@@ -20,7 +19,7 @@
2019
<PackageTags>Sadin,Kamran,utility,dotnet,tools</PackageTags>
2120
<Title>KS Framework</Title>
2221
<Description>A tool for .NET projects contain utilities for working with string, numbers, date time, and also helpers and base classes for Clean Architecture and DDD projects</Description>
23-
<ReleaseNotes>Initialize.</ReleaseNotes>
22+
<ReleaseNotes>Update .NET Version and minor changes.</ReleaseNotes>
2423
<RepositoryUrl>https://github.com/A-Programmer/KSFramework</RepositoryUrl>
2524
</PropertyGroup>
2625

0 commit comments

Comments
 (0)