Merge pull request #20 from fxpro-git/master #83
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: .NET Core | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build with dotnet | |
run: dotnet build | |
- name: Test with dotnet | |
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=lcov | |
- name: Publish Nuget | |
run: > | |
dotnet build -c Release && | |
dotnet pack -c Release && | |
dotnet nuget push ./src/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETAPIKEY }} --skip-duplicate |