Skip to content

Merge branch 'release/0.4.2' #18

Merge branch 'release/0.4.2'

Merge branch 'release/0.4.2' #18

Workflow file for this run

name: release
on:
push:
branches: [ "main" ]
# branches: [ "release/*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'
- run: |
dotnet pack src/MediatR.Remote -c Release
dotnet pack src/MediatR.Remote.Extensions.DependencyInjection -c Release
- name: Publish the package to nuget.org
run: dotnet nuget push src/*/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}