Change project reference to nuget package reference #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: Push MinimalRichDomain packages to NuGet | |
on: | |
push: | |
branches: [ "master" ] | |
paths: | |
- 'src/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v1 | |
- name: Build | |
run: dotnet build -c Release | |
- name: Test | |
run: dotnet test -c Release --no-build | |
- name: Package | |
run: dotnet pack -c Release --no-build --output . | |
- name: Push to NuGet | |
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json --skip-duplicate |