Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cwinland committed Oct 17, 2023
2 parents 9150a4f + 1beef92 commit eaefaf5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish to nuget
on:
push:
branches:
- master # Release branch
paths:
- Wpf.NotificationCenter/**
- .github/workflows/**

jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

# Publish
- name: Build FastMoq
run: dotnet build Wpf.NotificationCenter/Wpf.NotificationCenter.csproj -c Release

- name: Creating a package
run: dotnet pack Wpf.NotificationCenter/Wpf.NotificationCenter.csproj --no-build -c Release -o .

- name: Publish to Nuget
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate -n

0 comments on commit eaefaf5

Please sign in to comment.