Merge pull request #152 from microsoft/feature/event-hub-dapr-aspire #86
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: BuildAndPackagePIIStrippingLogger | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/AICentral.Logging.PIIStripping/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/AICentral.Logging.PIIStripping/**' | |
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: Pack Nuget | |
run: dotnet pack ./src/AICentral.Logging.PIIStripping/AICentral.Logging.PIIStripping.csproj -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --output ./publish/ | |
- name: Publish to Nuget ${{ steps.gitversion.outputs.NuGetVersionV2 }} | |
run: dotnet nuget push ./publish/AICentral.Logging.PIIStripping.${{ steps.gitversion.outputs.NuGetVersionV2 }}.nupkg --api-key ${{ secrets.NUGET_PUBLISH_KEY }} --source https://api.nuget.org/v3/index.json |