Skip to content

Update nuget_push.yml #9

Update nuget_push.yml

Update nuget_push.yml #9

Workflow file for this run

name: CI/CT/CD
on:
push:
branches:
- master
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '3.1.x'
- name: Copy README to project directory
run: cp README.md Chunk\ List/
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run Unit Tests
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack --configuration Release --no-build -o out Chunk\ List/Chunk\ List.csproj
# run: dotnet pack --configuration Release --no-build -o out
- name: Push to NuGet
run: dotnet nuget push out/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate