From 161ac6ce773125af99983688d681358a4ae509bc Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 27 Jan 2022 22:54:57 +0100 Subject: [PATCH] feat: add nuget push github workflow --- .github/workflows/nuget-push.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/nuget-push.yml diff --git a/.github/workflows/nuget-push.yml b/.github/workflows/nuget-push.yml new file mode 100644 index 0000000..4249d02 --- /dev/null +++ b/.github/workflows/nuget-push.yml @@ -0,0 +1,29 @@ +# This workflow pushes builds to the private github nuget repo on a push or merge. + +name: NuGet Update + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + name: Update NuGet Package + steps: + + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v1.9.0 + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Pack app + run: dotnet pack NosSmooth.sln --configuration Release -o . + + - name: Publish NuGet + working-directory: nuget + run: dotnet nuget push *.nupkg --skip-duplicate \ No newline at end of file -- 2.48.1