~ruther/NosSmooth

ref: 8c97994a7df1dc28da75538b9a2d3cd3b57e6165 NosSmooth/.github/workflows/nuget-push.yml -rw-r--r-- 768 bytes
8c97994a — Rutherther chore: update nuget push action to have the environment variable with publish nuget task 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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: ubuntu-latest
    name: Update NuGet Package
    steps:
    
    - name: Checkout Repository
      uses: actions/checkout@v2
      
    - name: Setup .NET Core SDK
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: '6.0.x'
        
    - name: Pack app
      run: dotnet pack NosSmooth.sln --configuration Release -o nuget
      
    - name: Publish NuGet
      working-directory: nuget
      run: dotnet nuget push *.nupkg --skip-duplicate -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
      env:
        NUGET_AUTH_TOKEN: ${{secrets.NUGET_KEY}}
Do not follow this link