Skip to content

Commit

Permalink
chore: prepared for C# connector release
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Feb 29, 2024
1 parent 8d6d8b2 commit 9d4a4c0
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-csharp.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
3 changes: 2 additions & 1 deletion connector-csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@
<Copyright>Copyright © Accso GmbH 2024</Copyright>
<PackageProjectUrl>https://github.com/camunda-community-hub/zeebe-redis-exporter</PackageProjectUrl>
<PackageTags>Camunda Zeebe Redis</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<Protobuf Include="protobuf\schema.proto" GrpcServices="Client" />
</ItemGroup>
Expand Down

0 comments on commit 9d4a4c0

Please sign in to comment.