Skip to content

Add net6.0 TFM for EntityFramework6 package. (#348) #22

Add net6.0 TFM for EntityFramework6 package. (#348)

Add net6.0 TFM for EntityFramework6 package. (#348) #22

Workflow file for this run

name: publish Ardalis.Specification.EntityFramework6 to nuget
on:
push:
branches:
- main # Your default release branch
paths:
- 'Specification.EntityFramework6/src/**'
jobs:
publish:
name: list on nuget
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest
# Visit bit.ly/2synnZl to see the list of SDKs that are pre-installed with ubuntu-latest / windows-latest
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Publish
- name: publish on version change
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: Specification.EntityFramework6/src/Ardalis.Specification.EntityFramework6/Ardalis.Specification.EntityFramework6.csproj # Relative to repository root
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
TAG_COMMIT: true # Flag to enable / disable git tagging
TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key