~ruther/NosSmooth

161ac6ce773125af99983688d681358a4ae509bc — Rutherther 3 years ago 3772c2d
feat: add nuget push github workflow
1 files changed, 29 insertions(+), 0 deletions(-)

A .github/workflows/nuget-push.yml
A .github/workflows/nuget-push.yml => .github/workflows/nuget-push.yml +29 -0
@@ 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

Do not follow this link