Skip to content

Update and rename dotnet-desktop.yml to nuget_push.yml #1

Update and rename dotnet-desktop.yml to nuget_push.yml

Update and rename dotnet-desktop.yml to nuget_push.yml #1

Workflow file for this run

name: CI/CT/CD
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.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
- 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