Skip to content

Commit

Permalink
Publish to NuGet on version change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara authored Jun 25, 2022
1 parent f2180de commit f5c299b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
uses: brandedoutcast/publish-nuget@v2
if: success() && github.ref_name == 'master'
with:
PROJECT_FILE_PATH: ModernWpf.Controls/ModernWpf.Controls.csproj
PACKAGE_NAME: ModernWpfUI
VERSION_FILE_PATH: Directory.Build.props
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 comments on commit f5c299b

Please sign in to comment.