Publish Nuget #21
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: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1.0.5 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Integration Tests | |
run: dotnet test test/WorkflowCore.IntegrationTests --configuration Release --no-build --verbosity normal -p:ParallelizeTestCollections=false | |
- name: PostgreSQL Tests | |
run: dotnet test test/WorkflowCore.Tests.PostgreSQL --configuration Release --no-build --verbosity normal -p:ParallelizeTestCollections=false | |
- name: Pack | |
run: dotnet pack src/providers/WorkflowCore.Persistence.EntityFramework --configuration Release --no-build | |
- name: Pack | |
run: dotnet pack src/providers/WorkflowCore.Persistence.PostgreSQL --configuration Release --no-build | |
- name: Publish | |
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} |