Skip to content

Commit 875aead

Browse files
author
Thomas Hambach
committed
Attempt nuget publish
1 parent c8106dc commit 875aead

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/nuget.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Nuget Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
name: SonarScanner
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: publish on version change
13+
id: publish_nuget
14+
uses: brandedoutcast/publish-nuget@v2
15+
with:
16+
# Filepath of the project to be packaged, relative to root of repository
17+
PROJECT_FILE_PATH: CSharpDiff/CSharpDiff.csproj

CSharpDiff/CSharpDiff.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
6+
<PackageId>CSharpDiff</PackageId>
7+
<Version>0.0.1</Version>
8+
<Authors>ThomasHambach</Authors>
9+
<Description>
10+
Unified Diff support for .NET. Based on the popular library JSDIFF.
11+
</Description>
12+
<PackageTags>Diff;UniDiff;Line Diff;Unified Diff</PackageTags>
13+
714
</PropertyGroup>
815

916
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var text1 = "Here im. Rock you like old man.";
2121
var text2 = "Here im. Rock you like hurricane.";
2222

2323
var diff = new DiffSentence();
24-
string patch = diff.diff(text1, text2);
24+
var difference = diff.diff(text1, text2);
2525
```
2626

2727
### Patch

0 commit comments

Comments
 (0)