Skip to content

Release to NuGet v2 #10

Release to NuGet v2

Release to NuGet v2 #10

Workflow file for this run

name: Release to NuGet v2
on:
workflow_dispatch:
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 ./ApiUtilities/src/ApiUtilities.Common/ApiUtilities.Common.csproj
- name: Pack nugets
run: dotnet pack -c Release ./ApiUtilities/src/ApiUtilities.Common/ApiUtilities.Common.csproj --no-build --output .
- name: Run Tests
run: dotnet test -c Release ./ApiUtilities/tests/ApiUtilities.Tests/ApiUtilities.Tests.csproj
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json