Skip to content

Merge branch 'release/v1.9.0' #21

Merge branch 'release/v1.9.0'

Merge branch 'release/v1.9.0' #21

Workflow file for this run

name: publish to nuget
on:
push:
# Sequence of patterns matched against refs/tags e.g. v1.0.0
tags:
- 'v?[0-9]+\.[0-9]+\.[0-9]+'
workflow_dispatch:
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test ./src/Swashbuckle.AspNetCore.JsonMultipartFormDataSupport.sln
# Publish
- name: Package
run: dotnet pack ./src/Swashbuckle.AspNetCore.JsonMultipartFormDataSupport/Swashbuckle.AspNetCore.JsonMultipartFormDataSupport.csproj -o . -c Release
- name: Publish
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json