Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ardalis/SmartEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Aug 13, 2021
2 parents ab1f8ea + 9f5cba7 commit 7c3424b
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 7 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-efcore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish SmartEnum.EFCore to nuget
on:
push:
branches:
- master # Your default release branch
paths:
- 'src/SmartEnum.EFCore/**'
jobs:
publish:
name: list SmartEnum.EFCore on nuget.org
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: 3.1.300

# Publish
- name: publish on version change
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src/SmartEnum.EFCore/SmartEnum.EFCore.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: SmartEnumEFCore-v* # Format of the git tag, [*] gets replaced with version
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ProjectReference Include="..\..\src\SmartEnum.AutoFixture\SmartEnum.AutoFixture.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ProjectReference Include="..\..\src\SmartEnum.MessagePack\SmartEnum.MessagePack.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ProjectReference Include="..\..\src\SmartEnum.ProtoBufNet\SmartEnum.ProtoBufNet.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion test/SmartEnum.UnitTests/SmartEnum.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\..\src\SmartEnum\SmartEnum.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\..\src\SmartEnum.Utf8Json\SmartEnum.Utf8Json.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="coverlet.collector" Version="3.0.3">
<PackageReference Update="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 7c3424b

Please sign in to comment.