add subscriptions from stream end #5
Workflow file for this run
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
name: .NET Publish | |
on: | |
push: | |
tags: [ "v[0-9]+.[0-9]+.[0-9]+" ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
dotnet-version: [ '8.0.x' ] | |
timeout-minutes: 10 | |
services: | |
eventstore: | |
image: eventstore/eventstore:22.10.2-buster-slim | |
env: | |
EVENTSTORE_CLUSTER_SIZE: 1 | |
EVENTSTORE_RUN_PROJECTIONS: All | |
EVENTSTORE_START_STANDARD_PROJECTIONS: true | |
EVENTSTORE_INSECURE: true | |
EVENTSTORE_ENABLE_EXTERNAL_TCP: true | |
EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP: true | |
ports: | |
- 1113:1113 | |
- 2113:2113 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Verify commit | |
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_REF/refs\/tags\/v/}" >> $GITHUB_ENV | |
- name: Setup .NET ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --configuration Release --no-build --verbosity normal | |
- name: Pack | |
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output . | |
- name: Push | |
run: dotnet nuget push NiallMaloney.EventSourcing.${VERSION}.nupkg --source https://nuget.pkg.github.com/niall-maloney/index.json --api-key ${GITHUB_TOKEN} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |