From 1beef92b6468597ab12691e45d231144b0dd016d Mon Sep 17 00:00:00 2001 From: Christopher Winland Date: Tue, 17 Oct 2023 15:36:42 -0400 Subject: [PATCH] Create dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..952d6d9 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -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