Skip to content

Commit f5c299b

Browse files
authored
Publish to NuGet on version change
1 parent f2180de commit f5c299b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ jobs:
2323
run: dotnet restore
2424
- name: Build
2525
run: dotnet build --configuration Release --no-restore
26+
- name: Publish
27+
uses: brandedoutcast/publish-nuget@v2
28+
if: success() && github.ref_name == 'master'
29+
with:
30+
PROJECT_FILE_PATH: ModernWpf.Controls/ModernWpf.Controls.csproj
31+
PACKAGE_NAME: ModernWpfUI
32+
VERSION_FILE_PATH: Directory.Build.props
33+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)