Fix code coverage exporting (#2) #4
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: 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 }} |