Skip to content

Publish

Publish #15

Workflow file for this run

name: Publish
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./src
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-build --verbosity normal -m:1
- name: Pack
run: dotnet pack -c Release --no-build
- name: Publish Kot.MongoDB.Migrations
working-directory: ./src/Kot.MongoDB.Migrations/bin/Release/
run: dotnet nuget push "*.nupkg" -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish Kot.MongoDB.Migrations.DI
working-directory: ./src/Kot.MongoDB.Migrations.DI/bin/Release/
run: dotnet nuget push "*.nupkg" -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate