Skip to content

Merge pull request #35 from qdimka/feature/update-zb-client-2.6 #27

Merge pull request #35 from qdimka/feature/update-zb-client-2.6

Merge pull request #35 from qdimka/feature/update-zb-client-2.6 #27

Workflow file for this run

name: DEPLOY
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Pull zeebe
run: docker pull camunda/zeebe:8.4.0
- 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_REF/refs\/tags\/}" >> $GITHUB_ENV
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
- name: Test
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
- name: Nuget Push nuget.org
run: dotnet nuget push "zb-client-accelerator.${VERSION}.nupkg" -k ${NUGET_TOKEN} -s https://api.nuget.org/v3/index.json
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}