Adding DAPR broadcast receiver. #151
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: 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 |