Skip to content

Commit aa92aed

Browse files
authored
Merge pull request #9 from A-Programmer/develop
Develop
2 parents 0cff157 + 3ed9eb0 commit aa92aed

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/publish-nuget.yml

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

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

88
jobs:
99
publish:
@@ -16,25 +16,16 @@ jobs:
1616
- name: Setup .NET SDK
1717
uses: actions/setup-dotnet@v4
1818
with:
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
24-
19+
dotnet-version: 8.0.x
20+
2521
- name: Restore dependencies
26-
run: dotnet restore KSFramework.sln
22+
run: dotnet restore
2723

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

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

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

src/KSFramework/KSFramework.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<PropertyGroup>
1010
<PackageId>KSFramework</PackageId>
11+
<Version>1.4.8</Version>
1112
<Authors>Kamran Sadin</Authors>
1213
<Company>Sadin</Company>
1314
<CopyRight>Copyright (c) 2022 SadinCo.</CopyRight>

0 commit comments

Comments
 (0)