diff --git a/.github/workflows/deploy-csharp.yml b/.github/workflows/deploy-csharp.yml
new file mode 100644
index 0000000..05efddf
--- /dev/null
+++ b/.github/workflows/deploy-csharp.yml
@@ -0,0 +1,39 @@
+name: Deploy C# Connector
+on:
+ release:
+ types: [published]
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ steps:
+ - name: Pull Zeebe
+ run: docker pull ghcr.io/camunda-community-hub/zeebe-with-redis-exporter:latest
+ - name: Pull Redis
+ run: docker pull redis:7-alpine
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Setup
+ uses: actions/setup-dotnet@v4.0.0
+ with:
+ dotnet-version: 8.x
+ - name: Verify commit exists in origin/main
+ run: |
+ git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
+ git branch --remote --contains | grep origin/main
+ - name: Set VERSION variable from tag
+ run: echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
+ - name: Build
+ run: dotnet build --configuration Release /p:Version=${VERSION}
+ working-directory: connector-csharp
+ - name: Test
+ run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
+ working-directory: connector-csharp
+ - name: Pack
+ run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
+ working-directory: connector-csharp
+ - name: Nuget Push nuget.org
+ run: dotnet nuget push "zeebe-redis-connector.${VERSION}.nupkg" -k ${NUGET_TOKEN} -s https://api.nuget.org/v3/index.json
+ working-directory: connector-csharp
+ env:
+ NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
\ No newline at end of file
diff --git a/connector-csharp/README.md b/connector-csharp/README.md
index f4e27f6..8311860 100644
--- a/connector-csharp/README.md
+++ b/connector-csharp/README.md
@@ -2,7 +2,7 @@ C# Zeebe Redis Connector
========================
This library enables the retrieval of Zeebe events with C#. It is based on [StackExchange.Redis](https://www.nuget.org/packages/StackExchange.Redis/)
-and requires the configuration of the Zeebe Exporter as described in the main project.
+and requires the configuration of the Zeebe Exporter as described in the main project on Camunda Community Hub ([camunda-community-hub/zeebe-redis-exporter](https://github.com/camunda-community-hub/zeebe-redis-exporter)).
Current limitations:
* The connector uses a Multi-key operation to receive events from Redis and thus does not yet work with Redis Clusters.
@@ -11,6 +11,7 @@ Current limitations:
# Requirements
+* [Zeebe 8.x release](https://github.com/zeebe-io/zeebe/releases/) with [Redis Exporter](https://github.com/camunda-community-hub/zeebe-redis-exporter)
* [.NET 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
# Usage
diff --git a/connector-csharp/zeebe-redis-connector/zeebe-redis-connector.csproj b/connector-csharp/zeebe-redis-connector/zeebe-redis-connector.csproj
index 49ecda5..5f7991c 100644
--- a/connector-csharp/zeebe-redis-connector/zeebe-redis-connector.csproj
+++ b/connector-csharp/zeebe-redis-connector/zeebe-redis-connector.csproj
@@ -12,8 +12,16 @@
Copyright © Accso GmbH 2024
https://github.com/camunda-community-hub/zeebe-redis-exporter
Camunda Zeebe Redis
+ README.md
+
+
+ True
+ \
+
+
+