Skip to content

Fix code coverage exporting (#2) #4

Fix code coverage exporting (#2)

Fix code coverage exporting (#2) #4

name: Publish nuget
on:
push:
branches: [ "master" ]
env:
working-directory: Sources
release-directory: ./artifacts/package/release
dotnet-version: 8.0.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
working-directory: ${{ env.working-directory }}
- name: Build
run: dotnet build -c Release /p:ContinuousIntegrationBuild=true --no-restore --verbosity normal
working-directory: ${{ env.working-directory }}
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
working-directory: ${{ env.working-directory }}
- name: Publish to Nuget
run: dotnet nuget push ${{ env.release-directory }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ env.working-directory }}
- name: Publish to Nuget symbols
run: dotnet nuget push ${{ env.release-directory }}/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ env.working-directory }}