Skip to content

Updated README.md

Updated README.md #11

Workflow file for this run

name: NuGet Generation
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
project: ['kate.shared', 'kate.shared.CommandLine', 'kate.shared.EtoForms']
name: Create NuGet Package
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
9.x
- name: Build solution and generate NuGet package
run: |
cd ${{ matrix.project }}
dotnet build -c Release
dotnet pack -c Release -o out --include-symbols
- name: Add private GitHub registry to NuGet
run: dotnet nuget add source https://nuget.pkg.github.com/ktwrd/index.json --name "GPR" --username ktwrd --password ${{ secrets.GITHUB_TOKEN }}
- name: Push generated package to GitHub registry
run: dotnet nuget push .\${{matrix.project}}\out\*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "GPR" --skip-duplicate