Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Publish

Publish #12

Workflow file for this run

name: Publish
on:
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- run: dotnet restore
- run: dotnet build --configuration Release MassTransit.Extensions.Module/MassTransit.Extensions.Module.csproj -p:Version=${{vars.VERSION}}.${{github.run_number}}
- run: dotnet pack --configuration Release MassTransit.Extensions.Module/MassTransit.Extensions.Module.csproj --no-build -p:Version=${{vars.VERSION}}.${{github.run_number}} -p:PackageVersion=${{vars.VERSION}}.${{github.run_number}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=MassTransit.Extensions.Module.nuspec
- run: dotnet nuget push MassTransit.Extensions.Module/bin/Release/laget.MassTransit.Extensions.Module.${{vars.VERSION}}.${{github.run_number}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate