Skip to content

Adding DAPR broadcast receiver. #151

Adding DAPR broadcast receiver.

Adding DAPR broadcast receiver. #151

name: BuildAndPackageAzureMonitorLogger
on:
push:
branches:
- main
paths:
- 'src/AICentral.Logging.AzureMonitor/**'
pull_request:
branches:
- main
paths:
- 'src/AICentral.Logging.AzureMonitor/**'
workflow_dispatch:
jobs:
build-and-package-app:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Test
run: dotnet test src/AICentralTests/AICentralTests.csproj
- name: Pack Nuget
run: dotnet pack src/AICentral.Logging.AzureMonitor/AICentral.Logging.AzureMonitor.csproj -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --output ./publish/
- name: Publish to Nuget ${{ steps.gitversion.outputs.NuGetVersionV2 }}
run: dotnet nuget push ./publish/AICentral.Logging.AzureMonitor.${{ steps.gitversion.outputs.NuGetVersionV2 }}.nupkg --api-key ${{ secrets.NUGET_PUBLISH_KEY }} --source https://api.nuget.org/v3/index.json