Skip to content

Update README.md

Update README.md #37

Workflow file for this run

name: ISOLib
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['6.0.x']
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore ISOLib.sln
working-directory: ./src/ISO
- name: Build
run: dotnet build --configuration Release --no-restore ISOLib.sln
working-directory: ./src/ISO
- name: Run unit tests
run: dotnet test --configuration Release
working-directory: ./src/ISO.Tests
- name: Generate nuget package
run: dotnet pack --configuration Release -o nupkg ISOLib.sln
working-directory: ./src/ISO
- name: Publish nuget package
run: find . -name *.nupkg -type f -print0 | xargs -0 -I pkg dotnet nuget push pkg -k $nuget_api_key -s "https://api.nuget.org/v3/index.json" --skip-duplicate
env:
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
working-directory: ./src/ISO/nupkg