File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
- # Publish
13
- - name : publish on version change
14
- id : publish_nuget
15
- uses :
alirezanet/[email protected]
12
+
13
+ - name : Setup .NET
14
+ uses : actions/setup-dotnet@v1
16
15
with :
17
- # Filepath of the project to be packaged, relative to root of repository
18
- PROJECT_FILE_PATH : CSharpDiff/CSharpDiff.csproj
19
- NUGET_KEY : ${{secrets.NUGET_KEY}}
16
+ dotnet-version : 6.0.x
17
+
18
+ - name : Build binaries
19
+ run : dotnet build -c Release src/CSharpDiff/CSharpDiff.csproj
20
+
21
+ - name : Creating a package
22
+ run : dotnet pack --no-build -c Release src/CSharpDiff/CSharpDiff.csproj -o .
23
+
24
+ - name : Publish to Nuget
25
+ run : dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_KEY}} --skip-duplicate -n
Original file line number Diff line number Diff line change 4
4
<TargetFramework >net6.0</TargetFramework >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<PackageId >CSharpDiff</PackageId >
7
- <Version >0.0.3 </Version >
7
+ <Version >0.0.4 </Version >
8
8
<Authors >ThomasHambach</Authors >
9
9
<Description >
10
10
Unified Diff support for .NET. Based on the popular library JSDIFF.
You can’t perform that action at this time.
0 commit comments