File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Publish NuGet Package
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - ' v*.*.* '
5
+ branches :
6
+ - main
7
7
8
8
jobs :
9
9
publish :
@@ -16,25 +16,16 @@ jobs:
16
16
- name : Setup .NET SDK
17
17
uses : actions/setup-dotnet@v4
18
18
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
+
25
21
- name : Restore dependencies
26
- run : dotnet restore KSFramework.sln
22
+ run : dotnet restore
27
23
28
24
- name : Build
29
- run : dotnet build KSFramework.sln --configuration Release --no-restore
25
+ run : dotnet build --configuration Release --no-restore
30
26
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
36
29
37
30
- 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
Original file line number Diff line number Diff line change 8
8
9
9
<PropertyGroup >
10
10
<PackageId >KSFramework</PackageId >
11
+ <Version >1.4.8</Version >
11
12
<Authors >Kamran Sadin</Authors >
12
13
<Company >Sadin</Company >
13
14
<CopyRight >Copyright (c) 2022 SadinCo.</CopyRight >
You can’t perform that action at this time.
0 commit comments