-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: set release parameters / add readme * feat: release pipeline
- Loading branch information
1 parent
0a94dc1
commit 169bb9d
Showing
11 changed files
with
135 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish on NuGet | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
env: | ||
VERSION: ${{ github.event.release.tag_name }} | ||
|
||
jobs: | ||
publish-nuget: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
package: [ Fluss, Fluss.HotChocolate, Fluss.PostgreSQL, Fluss.Regen, Fluss.Testing ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.x | ||
9.x | ||
- name: Strip v from tag to determine version | ||
run: echo "VERSION=${VERSION/v/}" >> $GITHUB_ENV | ||
- name: Package | ||
run: dotnet pack --configuration Release /p:Version=${VERSION} | ||
working-directory: src/${{ matrix.package }} | ||
- name: Publish | ||
run: dotnet nuget push bin/Release/${{ matrix.package }}.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} | ||
working-directory: src/${{ matrix.package }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Fluss.HotChocolate | ||
|
||
This package contains an adapter to connect Fluss to [HotChocolate](https://chillicream.com/docs/hotchocolate/v13) to | ||
turn all GraphQL queries into live-queries backed by event-sourcing to get fresh data in your client the moment it changes. | ||
|
||
## Usage | ||
|
||
Assuming you have already configured both Fluss for your general event-sourcing needs and HotChocolate for everything | ||
GraphQL, setting up the adapter is as easy as calling `requestExecutorBuilder.AddLiveEventSourcing()`. | ||
|
||
> [!NOTE] | ||
> You also need to configure your client to run `query` operations through a websocket to benefit from the | ||
> subscription-like behaviour. This is different between different clients, so consult the respective documentation for | ||
> that. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Fluss.PostgreSQL | ||
|
||
Use a PostgreSQL database as event storage for Fluss. | ||
|
||
## Usage | ||
|
||
To configure, call `.AddPostgresEventSourcingRepository(connectionString)` on your `IServiceCollection`. Doing so will | ||
run the required migrations on startup, register the database as event storage and register a database-trigger for new | ||
events. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Fluss.Regen | ||
|
||
Regen is the "Repetitive Event-sourcing code-GENerator", and removes the need for assembly scanning to register | ||
resources like | ||
|
||
- Upcasters | ||
- Validators | ||
- SideEffects | ||
- Policies | ||
|
||
It also adds support for cached selector-functions, marked by the `[Selector]` attribute. | ||
|
||
## Usage | ||
|
||
To register all components listed above detected by Regen, call the generated `.Add*ESComponents()` function on your | ||
`IServiceCollection`. The name depends on the name of your assembly. | ||
|
||
### Selector | ||
|
||
Marking a `static` function with `[Selector]` creates an extension method on `IUnitOfWork` which adds an easy way of | ||
caching in the context of an `IUnitOfWork`, returning known, previously computed data if available. |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Fluss.Testing | ||
|
||
Package to provide utilities for unit-testing projects using Fluss. | ||
|
||
## Usage | ||
|
||
TBD |
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