Skip to content

Commit 0f933fc

Browse files
author
Thomas Hambach
committed
Yawn
1 parent bf64e14 commit 0f933fc

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/nuget.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- 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
1615
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

CSharpDiff/CSharpDiff.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<PackageId>CSharpDiff</PackageId>
7-
<Version>0.0.3</Version>
7+
<Version>0.0.4</Version>
88
<Authors>ThomasHambach</Authors>
99
<Description>
1010
Unified Diff support for .NET. Based on the popular library JSDIFF.

0 commit comments

Comments
 (0)