2.0.0-rc.2 #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
VersionPrefix: | |
type: string | |
description: The version of the library | |
required: true | |
default: 2.0.0 | |
VersionSuffix: | |
type: string | |
description: The version suffix of the library (for example rc.1) | |
run-name: ${{ inputs.VersionPrefix }}-${{ inputs.VersionSuffix }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET 8.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- name: Build Testing.Databases.SqlServer | |
run: dotnet pack | |
--property:Configuration=Release | |
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }} | |
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }} | |
"src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj" | |
- name: Build Testing.Databases.SqlServer.EntityFramework | |
run: dotnet pack | |
--property:Configuration=Release | |
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }} | |
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }} | |
"src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj" | |
- name: Build Testing.Databases.SqlServer.Dac | |
run: dotnet pack | |
--property:Configuration=Release | |
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }} | |
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }} | |
"src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj" | |
- name: Publish the package to nuget.org | |
run: dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json |