Upgrade to v2.1.0, .net 8, remove newtonsoft.json #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup dotnet 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.x | |
- name: Setup dotnet 7 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Run tests | |
run: dotnet test -c Release --no-restore --no-build --verbosity normal | |
- name: Add GitHub Packages Nuget Source | |
run: dotnet nuget add source --username zacbre --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/zacbre/index.json" | |
- name: Publish to GitHub Packages | |
run: dotnet nuget push **\*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish to Nuget | |
run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}} |