Skip to content

[C#] chore: bump .NET library to v1.0.0 (#1044) #33

[C#] chore: bump .NET library to v1.0.0 (#1044)

[C#] chore: bump .NET library to v1.0.0 (#1044) #33

#
# This workflow will publish .NET SDK.
#
name: DOTNET Publish
on:
workflow_dispatch:
push:
branches: ['main']
paths: ['dotnet/**']
permissions: read-all
jobs:
build-test-lint:
name: Build/Test/Lint
uses: ./.github/workflows/dotnet-build-test-lint.yml
permissions: read-all
publish:
name: Publish
needs: build-test-lint
runs-on: windows-latest
strategy:
matrix:
dotnet-version: ['6.0', '7.0']
fail-fast: false
defaults:
run:
shell: bash
working-directory: dotnet/packages/Microsoft.TeamsAI/
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Pack
run: dotnet pack --output . --configuration Release Microsoft.TeamsAI/Microsoft.Teams.AI.csproj
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/microsoft/index.json --skip-duplicate --no-symbols
- name: Upload
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: nupkg-dotnet-${{ matrix.dotnet-version }}
path: dotnet/packages/Microsoft.TeamsAI/*.nupkg