Skip to content

Commit 51888cf

Browse files
Separated core package and implementation package
1 parent 343bfb4 commit 51888cf

14 files changed

Lines changed: 104 additions & 7 deletions

.github/workflows/publish-core.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish to NuGet
2+
3+
on:
4+
push:
5+
tags:
6+
- core-v[0-9]+.[0-9]+.[0-9]+
7+
- core-v[0-9]+.[0-9]+.[0-9]+-*
8+
9+
jobs:
10+
BuildAndTest:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Git checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v5
18+
with:
19+
dotnet-version: 10.0.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build -c Release --no-restore
26+
27+
- name: Test
28+
run: dotnet test --no-build --verbosity normal
29+
30+
Publish:
31+
needs: [BuildAndTest]
32+
runs-on: ubuntu-latest
33+
if: (github.ref_type == 'tag')
34+
steps:
35+
- name: Git checkout
36+
uses: actions/checkout@v6
37+
38+
- name: Setup .NET
39+
uses: actions/setup-dotnet@v5
40+
with:
41+
dotnet-version: 10.0.x
42+
43+
- name: Package project
44+
run: dotnet pack FluentPipelines.Core/FluentPipelines.Core.csproj -c Release "/p:PackageOutputPath=$GITHUB_WORKSPACE/artifacts" "/p:Version=${GITHUB_REF_NAME##core-v}" /p:RepositoryCommit=$GITHUB_SHA "/p:Authors=Visual Vincent"
45+
46+
- name: Publish NuGet package
47+
run: dotnet nuget push "$GITHUB_WORKSPACE/artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Publish to NuGet
33
on:
44
push:
55
tags:
6-
- v[0-9]+.[0-9]+.[0-9]+
7-
- v[0-9]+.[0-9]+.[0-9]+-*
6+
- main-v[0-9]+.[0-9]+.[0-9]+
7+
- main-v[0-9]+.[0-9]+.[0-9]+-*
88

99
jobs:
1010
BuildAndTest:
@@ -41,7 +41,7 @@ jobs:
4141
dotnet-version: 10.0.x
4242

4343
- name: Package project
44-
run: dotnet pack -c Release "/p:PackageOutputPath=$GITHUB_WORKSPACE/artifacts" "/p:Version=${GITHUB_REF_NAME##v}" /p:RepositoryCommit=$GITHUB_SHA "/p:Authors=Visual Vincent"
44+
run: dotnet pack FluentPipelines/FluentPipelines.csproj -c Release "/p:PackageOutputPath=$GITHUB_WORKSPACE/artifacts" "/p:Version=${GITHUB_REF_NAME##main-v}" /p:RepositoryCommit=$GITHUB_SHA "/p:Authors=Visual Vincent"
4545

4646
- name: Publish NuGet package
47-
run: dotnet nuget push "$GITHUB_WORKSPACE/artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
47+
run: dotnet nuget push "$GITHUB_WORKSPACE/artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net10.0;net8.0;netstandard2.0</TargetFrameworks>
5+
<AssemblyName>FluentPipelines.Core</AssemblyName>
6+
<RootNamespace>FluentPipelines</RootNamespace>
7+
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
8+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<DebugType>embedded</DebugType>
10+
</PropertyGroup>
11+
12+
<!-- Application information -->
13+
<PropertyGroup>
14+
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
15+
<Copyright>Copyright © Visual Vincent 2024-2026</Copyright>
16+
<Company>Visual Vincent (Open Source Developer)</Company>
17+
<Description>FluentPipelines provides streamlined methods to build top-to-bottom data processing pipelines using fluent syntax.</Description>
18+
<RepositoryType>git</RepositoryType>
19+
<RepositoryUrl>https://github.com/Visual-Vincent/FluentPipelines</RepositoryUrl>
20+
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
21+
<PackageReadmeFile>README.md</PackageReadmeFile>
22+
</PropertyGroup>
23+
24+
<!-- NuGet configuration -->
25+
<PropertyGroup>
26+
<PackageId>$(AssemblyName)</PackageId>
27+
<Title>$(AssemblyTitle)</Title>
28+
<Authors>$(Company)</Authors>
29+
<Description Condition="'$(Description)' == ''">$(AssemblyTitle)</Description>
30+
<Description Condition="'$(Description)' != ''">$(Description)</Description>
31+
<PackageVersion>$(Version)</PackageVersion>
32+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
33+
<PublishRepositoryUrl>True</PublishRepositoryUrl>
34+
</PropertyGroup>
35+
36+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
37+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
38+
</PropertyGroup>
39+
40+
<ItemGroup>
41+
<None Include="..\README.md" Pack="true" PackagePath="\" />
42+
</ItemGroup>
43+
44+
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)