Skip to content

Commit 851a80d

Browse files
committed
fix: update docs version to 2.3.0 and enable main branch deploy
1 parent b486fe4 commit 851a80d

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
deploy_docs:
8686
runs-on: ubuntu-latest
87-
if: startsWith(github.ref, 'refs/tags/v')
87+
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
8888
permissions:
8989
contents: read
9090
pages: write

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Concordia is a .NET library implementing the **Mediator pattern**, designed to b
7979

8080
## Installation
8181

82-
Concordia is distributed via three NuGet packages, all currently at **version 2.2.0**:
82+
Concordia is distributed via three NuGet packages, all currently at **version 2.3.0**:
8383

8484
1. **`Concordia.Core`**: Contains the interfaces (`IMediator`, `ISender`, `IRequest`, etc.), the `Mediator` implementation, and core DI extension methods.
8585

@@ -92,15 +92,15 @@ To get started with Concordia, install the necessary packages in your applicatio
9292
**Option 1: Using the Source Generator (Recommended for New Projects)**
9393

9494
```bash
95-
dotnet add package Concordia.Core --version 2.2.0
96-
dotnet add package Concordia.Generator --version 2.2.0
95+
dotnet add package Concordia.Core --version 2.3.0
96+
dotnet add package Concordia.Generator --version 2.3.0
9797
```
9898

9999
**Option 2: Using the MediatR Compatibility Layer (For Migration or Reflection Preference)**
100100

101101
```bash
102-
dotnet add package Concordia.Core --version 2.2.0
103-
dotnet add package Concordia.MediatR --version 2.2.0
102+
dotnet add package Concordia.Core --version 2.3.0
103+
dotnet add package Concordia.MediatR --version 2.3.0
104104
```
105105

106106
Alternatively, you can install them via the NuGet Package Manager in Visual Studio.
@@ -314,9 +314,9 @@ Add the `Concordia.Generator` as a `ProjectReference` to your application projec
314314
</ItemGroup>
315315

316316
<ItemGroup>
317-
<PackageReference Include="Concordia" Version="2.2.0"/>
317+
<PackageReference Include="Concordia" Version="2.3.0"/>
318318
<!-- Required for compile-time handler registration -->
319-
<PackageReference Include="Concordia.Generator" Version="2.2.0" PrivateAssets="all" />
319+
<PackageReference Include="Concordia.Generator" Version="2.3.0" PrivateAssets="all" />
320320
</ItemGroup>
321321

322322
<!-- Ensure your Request, Handler, Processor, and Behavior files are included in the project -->

docs/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ This approach leverages the Roslyn compiler to inject registration code directly
2626
Add the Core library and the Generator to your project using the .NET CLI:
2727

2828
```bash
29-
dotnet add package Concordia.Core --version 2.2.0
30-
dotnet add package Concordia.Generator --version 2.2.0
29+
dotnet add package Concordia.Core --version 2.3.0
30+
dotnet add package Concordia.Generator --version 2.3.0
3131
```
3232

3333
### 2. Verify csproj Configuration
3434
Ensure that the `Concordia.Generator` is properly referenced (usually handled automatically by NuGet, but good to verify):
3535

3636
```xml
3737
<ItemGroup>
38-
<PackageReference Include="Concordia" Version="2.2.0" />
39-
<PackageReference Include="Concordia.Generator" Version="2.2.0" PrivateAssets="all" />
38+
<PackageReference Include="Concordia" Version="2.3.0" />
39+
<PackageReference Include="Concordia.Generator" Version="2.3.0" PrivateAssets="all" />
4040
</ItemGroup>
4141
```
4242

@@ -78,8 +78,8 @@ If you cannot immediately switch to compile-time generation (e.g., due to comple
7878
Add the Core library and the MediatR compatibility layer:
7979
8080
```bash
81-
dotnet add package Concordia.Core --version 2.2.0
82-
dotnet add package Concordia.MediatR --version 2.2.0
81+
dotnet add package Concordia.Core --version 2.3.0
82+
dotnet add package Concordia.MediatR --version 2.3.0
8383
```
8484
8585
### 2. Register Services

docs/mediatr-compat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Remove `MediatR` and install `Concordia`.
2121

2222
```diff
2323
- <PackageReference Include="MediatR" Version="12.0.1" />
24-
+ <PackageReference Include="Concordia.Core" Version="2.2.0" />
25-
+ <PackageReference Include="Concordia.MediatR" Version="2.2.0" />
24+
+ <PackageReference Include="Concordia.Core" Version="2.3.0" />
25+
+ <PackageReference Include="Concordia.MediatR" Version="2.3.0" />
2626
```
2727

2828
### 2. Rename Namespaces

0 commit comments

Comments
 (0)